Relationship « Eclipse « JPA Q&A





1. How do you Set Up a Many-to-Many Relationship with Junction Table using JPA/EclipseLink    stackoverflow.com

I have 2 tables: Movies: movieID Users: userID These tables have a many to many relationship through the Queue table, with an additional attribute, listOrder: Queue: movieID, userID, listOrder I'm attempting to ...

2. JPA Eclipselink: How to find which relationship is causing error    stackoverflow.com

I get the following error when attempting to persist an object: java.lang.IllegalStateException: During synchronization a new object was found through a relationship that was not marked cascade PERSIST Is there any simple ...

3. make a entity class rows read-only in JPA    stackoverflow.com

I m able to get values using JPA when i have only mapped one table Now when i have gone for mapping related tables i get the error

  Only one ...

4. Inserting the value in the "other side" of a 1-to-n relationship in JPA (using EclipseLink)    stackoverflow.com

I have an app using JSF 2, JPA 2 and EJB 3.1 running on GlassFish v3 (so it uses EclipseLink 2). This application has two JPA entities, Person and Message and ...

5. Eclipselink performs an unexpected insert in a many-to-one relationship    stackoverflow.com

I have a very basic relationship between two objects:

@Entity  
public class A {  

  @ManyToOne(optional = false)  
  @JoinColumn(name="B_ID", insertable=false, updatable=true)  
  private StatusOfA ...