Home » Search

About OneToMany

41-50 of 143Refresh
JPA Doc
4

JoinColumn.referencedColumnName

with a unidirectional OneToMany foreign key mapping, the referenced column is in the table
Forum
3

find() cost unreasonable time!

="parent") protected Nodes parent; @OneToMany(mappedBy="parent",fetch=FetchType.EAGER) protected ... .persistence.ManyToOne; import javax.persistence.OneToMany; @Entity @Inheritance(strategy ... ; @OneToMany(mappedBy="parent",fetch=FetchType.EAGER) protected List Sons; public int getId
Forum
3

Error 613 - i cant put a list<Athlete> into a Squad object

.Entity; import javax.persistence.OneToMany; @Entity public class Squad {     private int squadId;     @OneToMany()     private List athlets;     public Squad() {         super ... .persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.OneToMany
Forum
3

Error 363 - Failed to read value of inverse relationship

private String id; @OneToMany(mappedBy="town") private Set events; public ... ArrayList(); @OneToMany(mappedBy = "address") private List receivedMessages ... String text; @OneToMany(/*fetch=FetchType.LAZY, cascade=CascadeType.ALL, */mappedBy
Forum
3

Lazy loading does not work - crud takes long

tomee7.0.0SNAPSHOT,objectdb 2.6.4 The OneToMany Entities are filled with 40.000 Records and they have between 20-40 Columns. It takes over 50s to load all Project Enities that contains the OneToMany ... , generator = "PROJECT_SEQUENCE")     private Long id;     ..     ..     @OneToMany(cascade
Forum
3

Optimistic locking: prevent version increment on entity collection attribute

. Hello, unfortunately I seem to have some issues. I have changed my classes to have a OneTomany ...     @Id private long id;        @OneToMany(mappedBy="document")     private ArrayList readings ... private long id = ID_SEQ++; @OneToMany(mappedBy="document") private ArrayList
Forum
3

Performance in large transactions

javax.persistence.OneToMany; import javax.persistence.Persistence; import javax.persistence.TypedQuery ... MyEntity {   @OneToMany(cascade = CascadeType.ALL)   private List list = new ArrayList ... {         @OneToMany(cascade = CascadeType.ALL, mappedBy = "ownerEntity")         private List
Issue
2

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

, but the same problem happens to  uni-directional @OneToMany fields, and also there seem to be some simple ... = new ArrayList(); @OneToMany(mappedBy = "owner", cascade = CascadeType.ALL) public ... the list field values becomes null (in my larger real-world application, lots of other @OneToMany
Forum
2

EntityManager JPA or JDO impl and different behavior

;         }                 @OneToMany(cascade=CascadeType.PERSIST, fetch=FetchType.EAGER)         public List ... ;             displayValues.put("en", name);         }         @OneToMany(cascade=CascadeType ... /jpa/OneToMany state: "When the collection is a java.util.Map, the cascade element
Forum
2

On initialisation of lists: impact on migration from EclipseLink to ObjectDB

() @OneToMany(cascade=CascadeType.ALL) public List getBlocks() { return blocks ... = new ArrayList(); @OneToMany public List getBlocks() { return blocks ... . There are cases where one should explicitly init such a @OneToMany list anyway, namely when an entity