Home » Search

About OneToMany

81-90 of 149Refresh
Forum
1

problem with lazy loading - unittest project attached

hi, i'm still testing objectdb together with spring-data-jpa. i made a test which should simulate 4 requests 1. save entity 2. read an existing entity, add onetomany relation 3. read an existing entity, add another onetomany relation 4. read entity, get relations. i have the feeling this is not
Forum
1

Removing an entity throws exception

; @OneToMany(mappedBy = "customer", fetch= FetchType.LAZY) private List itemList; @OneToMany(mappedBy = "customer", fetch= FetchType.LAZY) private List
Issue
1

spuriously objectdb objects have null references

){ } } } ...   the reference definitions are (for the null references above): ... @OneToMany(fetch=FetchType.LAZY) @Index public List actions = new ArrayList(); ... @OneToMany
Forum
1

TreeSet and compareTo() issue

fetch: @OneToMany(fetch = FetchType.EAGER) private Set dropdownValues = new ... :     @OneToMany(fetch = FetchType.EAGER, cascade=CascadeType.PERSIST)     private Set
Forum
1

Weird behaviour with enhanced classes and embedded entities

.FetchType; import javax.persistence.Id; import javax.persistence.OneToMany; import javax.persistence ... ;     @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)     private List
Issue
1

Weird issue with variable naming

javax.persistence.OneToMany; import javax.persistence.Persistence; import javax.persistence.Tuple ... final class MyEntity {   @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)   public Map
Forum
1

Problem with entities detection

.OneToMany; import javax.persistence.Table; import javax.persistence.Temporal; import javax ... ; @OneToMany(mappedBy = "idAlumno") private List asignaturasAlumnoList
Forum
1

Is there any restriction when using fetch=FetchType.LAZY ?

in object declaration @OneToMany(fetch=FetchType.EAGER, cascade = CascadeType.ALL) private ... @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL) private LinkedList
Forum
1

"Problem" with cross join

; @OneToMany(mappedBy="ci") private List content; abstract class CIdata (@Inheritance(strategy
Forum
1

@Column( name = "columnName") doesn't work

; @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @Column( name = "DATA_ITEMS