Home » Search

About OneToMany

101-110 of 149Refresh
Forum
1

Detaching objects after JOIN FETCH

Hi, I have a question about detaching objects after issuing query with JOIN FETCH. Let's say I have two classes: public class A { @ManyToOne B bClass } public class B { @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) List aClasses; } Now, I want
Forum
1

Different behavior with persist() and queried instances?

Hi, We have a simple class that by itself contains (among others) a property pointing to a collection: class Bla {     @OneToMany(cascade = CascadeType.ALL)     private List metaAttributes = new ArrayList(); } Now we do a simple em.persist(BlaInstance
Forum
1

Double persist of Entity field with Cascade.ALL

bookTitle; @OneToMany(cascade= CascadeType.ALL, fetch= FetchType.EAGER) private List
Issue
1

Eager Fetch of Map with Entities as Keys

{         @Id private long id = 1;         @OneToMany(fetch=FetchType.EAGER)         Map map = new
Issue
1

Enhanced classes problem

: Info about the field and annotations: @OneToMany(fetch = FetchType.EAGER, mappedBy = "jobInfoId
Forum
1

Entity not removed 100%

When I remove an object from a class it get's removed but the other objects that had that object as an attribute still keep it although I am using @OneToMany(cascade=CascadeType.ALL) This is what it remains when I check the removed object from another object's attributes     It is the application
Forum
1

Error during cascaded merge

.receiveTime"}),}) public class Unit implements Serializable, Comparable { ... @OneToMany(mappedBy
Forum
1

Example database world.odb

that describes the relationships OneToMany and ManyToMany? I want to see a working example
Forum
1

Failed to write the value of field using reflection (error 363) on LAZY fetch

hints? The Mapping of class Modell and its member: @Entity class Modell { ... @OneToMany(fetch
Forum
1

find() delay

@JoinColumn(name="pid")   protected Node parent;   @OneToMany(mappedBy="parent",fetch=FetchType.EAGER