I need something like a partial contraint for one of my entities. @Entity public class MyEntity { @NotNull
I am getting an exception object references an unsaved transient instance - save the transient instance before f开发者_开发百科lushing
in my JavaEE 6 application (JBoss 6.0.0.Final) I have a class hierarchy outlined like this @Stateful public class UserFacade
I am having an issue with creating queries with javax.persistence.criteria.CriteriaBuilder. I am using EclipseLink 2.1 and an Oracle 10g database. When building a quer开发者_StackOverflow社区y with mu
I have an object in which a member is an enum, and I want to write a query returning all elements for which that member is in a list of values. So, I\'ve written the following JQP query
I build a web application using hibernate JPA 2 + spring. I have problem with creation of domain model. In persistence I declared the automatic creation of database tables from entity开发者_开发技巧.
I am using Java, spring, jpa for our application. I want to retrieve Id of insert row. Basically our ID is generated at the t开发者_开发知识库ime of storing object into database.
I have this problem: Exception in thread \"main\" javax.persistence.PersistenceException: [PersistenceUnit: fb-persistence] Unable to configure EntityManagerFactory
I\'m trying to create an entity bean but Netbeans IDE complains Entity Bean cannot be generated because there is no primary key so I want to know if a primary key is 开发者_如何学运维required by every
I am using Hibernate 3.6.0 with JPA 2 on Jboss AS 6.0.0 final. In an EJB of mine, there\'s a method which updated entity values and do some query on it. The whole method is running in a BMT transactio