eclipselink
How can I determine why JPA/eclipselink/J2EE is issuing a ROLLBACK to the DB?
I am chasing a problem where I see SQL statements run in my database log in a transaction, then see that transaction rolledback.[详细]
2023-04-08 00:11 分类:问答Cascade insert with JPA/Hibernate (EclipseLink)
I have two tables like this PERSON||EMPLOYEE| |id|fullName|| personId | code | EMPLOYEE.personId is a primary key as well as foreign key pointing to PERSON.id[详细]
2023-04-07 01:50 分类:问答Merging JPA entity returns old values
I have 2 JPA entities that have a bidirectional relationship between them. @Entity public class A { @ManyToOne(cascade={CascadeType.PERSIST, CascadeType.MERGE})[详细]
2023-04-06 23:34 分类:问答How to add a Map<String, Person> in an entity class?
I want to add a mapping as Map<String, Person> personMap; inside an entity class, where Person is the entity. The Map is to identify the exact Person corresponding to the String (let it be a[详细]
2023-04-06 17:34 分类:问答JPA Serialization
I\'m working with JPA 2.0-EclipseLink-Hibernate 3 on MySQL 5. My classes structure is like below (I simplified it)[详细]
2023-04-05 19:07 分类:问答@SequenceGenerator with DerbyEmbedded Problem
I m actually trying to learn JPA, and i\'m having some trouble with @SequenceGenerator. I\'m using the derby Embedded database with EclipseLink and I\'m trying to apply the SequenceGenerator annotatio[详细]
2023-04-05 09:30 分类:问答How do I catch the constraint violation exception from EclipseLink?
I am using EclipseLink in my web application, and I am having a hard time gracefully catching and handling Exceptions it generates.I see from this thread what seems to be a similar problem, but I don\[详细]
2023-04-04 16:49 分类:问答EJB abstract entity causing java.lang.NoClassDefFoundError?
In my ejb project I defined an abstract entity class called DataObjectEntity.java, and have all entities extend this class. The purpose is such that common fields can be reused and logging of activiti[详细]
2023-04-04 12:52 分类:问答Problem with JPA, EclipseLink and case sensitive mysql
My application is working fine in a Windows environment, but when I\'m trying to test in a linux server, I have a problem with the JPA EclipseLink sql generated.[详细]
2023-04-04 03:37 分类:问答JPA 2 - How to cache/optimize count queries?
I have Java EE application, where I have list of groups. I want to display number of items in every group, so I do:[详细]
2023-04-03 16:41 分类:问答