jpa-2.0
JPA: Partial contraint
I need something like a partial contraint for one of my entities. @Entity public class MyEntity { @NotNull[详细]
2023-03-17 15:22 分类:问答Hibernate unsaved instance exception using @ElementCollection
I am getting an exception object references an unsaved transient instance - save the transient instance before f开发者_开发百科lushing[详细]
2023-03-17 09:19 分类:问答EntityManager became NULL after a while (about 10m)
in my JavaEE 6 application (JBoss 6.0.0.Final) I have a class hierarchy outlined like this @Stateful public class UserFacade[详细]
2023-03-17 01:44 分类:问答Jpa QueryBuilder Multiple expressions in where clause not working
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[详细]
2023-03-16 21:25 分类:问答How to find using JPQL if member value is in a collection of values
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[详细]
2023-03-16 14:45 分类:问答Persistence doesn't create table from entity in database
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开发者_开发技巧.[详细]
2023-03-16 11:49 分类:问答how to retrieve ID after object store into database
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.[详细]
2023-03-16 07:51 分类:问答Problem with JPA2 and Hibernate
I have this problem: Exception in thread \"main\" javax.persistence.PersistenceException: [PersistenceUnit: fb-persistence] Unable to configure EntityManagerFactory[详细]
2023-03-16 07:48 分类:问答JPA 2 Entity Bean primary Key Required?
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[详细]
2023-03-16 07:24 分类:问答Hibernate Entity manager auto flush before query and commit changes to DB in transaction
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[详细]
2023-03-16 06:31 分类:问答