Home » Search

About OneToMany

61-70 of 145Refresh
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

LAZY @ManyToOne field functions as EAGER

would expect b.cLazy to not be still resolved. [By constrast, using this approach an unmapped @OneToMany list is not still viewable, although a mapped @OneToMany list is, which I will discuss in
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
Forum
1

LEFT (OUTER) JOIN problem when mappedBy is defined

invoices without items! Only invoices with items. When I remove mappedBy from @OneToMany annotation, LEFT ... (); } } @Entity public class Invoice { @OneToMany(mappedBy = "invoice", fetch= FetchType.EAGER
Forum
1

Left join fetch behaviour doesn't retrieve children?

annotation @OneToMany, @ManyToMany we have ) If Yes, we should inspect the problem in a short test case ... how much collection1 items we have in the bag? ( and no matter kind of JPA annotation @OneToMany, @ManyToMany
Forum
1

List of Enum Values in an entity

the problem is to change the fetch policy of the field from LAZY to EAGER:     private @OneToMany(fetch ... is this just a ObjectDB specific case that the @OneToMany works here? Thank you Flashbaer Eclipse is right
Forum
1

mappedBy problem

If I put the mappedBy element to the @OneToMany, the owned side (the many side) will never persist ! for example @Entity public class Employee { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public Long id; public String name; @OneToMany(targetEntity=Address.class