Home » Search

About OneToMany

51-60 of 143 Refresh
Issue
2

NullPointer when accessing persistent field

dependencies )   The code being called is accessing a map declared as follows; @ OneToMany(cascade ... static class A {         @ OneToMany(targetEntity = B.class, mappedBy = "a")         private List OneToMany(cascade
Forum
2

Merge Issue: Attempt to reuse an existing primary key value

();     }     @Entity     static class A {         @ OneToMany(cascade=CascadeType.ALL)         List list ... ();     }     @Entity     static class A {         //@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "parent")         @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType
Forum
2

can't get HashMap out of the database

. The full Eclipse project attached FYI. Thanks, Natalia.     Try annotating the map with @ OneToMany ... implements Serializable { private String name; private Date signingDate;     @ OneToMany ... GuestHolder { // Persistent Fields: @Id @GeneratedValue Long id; @ OneToMany(fetch
Forum
2

Does ObjectDB support lazy loading?

class which contains List , marked with @ OneToMany. After persisting a Parent object, (in ... to @ OneToMany(fetch=FetchType.EAGER), the properties can be read. It seems to me that ObjectDB doesn't ... @GeneratedValue Long id; @ OneToMany(fetch=FetchType.LAZY, cascade=CascadeType.ALL) List list
Forum
1

Apparent Lazy Loading issues.

only at the database id. Second issue. The docs at: http://www.objectdb.com/api/java/jpa/ OneToMany ... apply to the map value." This appears to mean that if I have cascade=CascadeType.ALL on a OneToMany map
Forum
1

How to use JOIN FETCH?

; import javax.persistence. OneToMany; import javax.persistence.Persistence; import javax.persistence ... @GeneratedValue private long id;   private String name;   @ OneToMany   @MapKeyTemporal(TemporalType.DATE
Forum
1

Is it ok to put list or map of embeddable objects in entity ?

: @Embeddable public class EmbeddableB implements Serializable { (...) @ OneToMany(cascade ... ?   Maybe you can try: @Entity public class EntityA implements Serializable {    (...)     @ OneToMany
Forum
1

Is it possible to remove parent/child entities without refresh?

.MapKey; import javax.persistence. OneToMany; import javax.persistence.Persistence; import org.junit ...   private long id;   @ OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy
Forum
1

Issue with orphanRemoval and multiple EntityManagers

Hi, We have a problem where our database size grows over time more than expected. We've traced it down to the following issue: I have some entities that are using OneToMany relationship ... static class Organisation {         @Id         private long id;         @ OneToMany(cascade
Forum
1

LazyInitialization / join fetch

the fetch join? If so should I do to all fields of List , ie OneToMany or ... do to all fields of List , ie OneToMany or should also be done for joins ? Grateful. Are you using Hibernate? This is the ObjectDB forum not the Hibernate forum. rafael_moreira