I am chasing a problem where I see SQL statements run in my database log in a transaction, then see that transaction rolledback.
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
I have 2 JPA entities that have a bidirectional relationship between them. @Entity public class A { @ManyToOne(cascade={CascadeType.PERSIST, CascadeType.MERGE})
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
I\'m working with JPA 2.0-EclipseLink-Hibernate 3 on MySQL 5. My classes structure is like below (I simplified it)
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
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\
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
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.
I have Java EE application, where I have list of groups. I want to display number of items in every group, so I do: