Home » Search

About OneToMany

101-110 of 144Refresh
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
Forum
1

Foreign key constraint issue

    private long id;     @OneToMany(cascade = {CascadeType.MERGE, CascadeType.REMOVE}, mappedBy
Forum
1

Is there a way to set EAGER fetch on all "ToMany" collection relationships

Given that the default seems to be FetchType.LAZY for all collections @OneToMany and @ManyToMany. Such as a configuration option. Instead of having to explicitly set fetch in annotation code in every relationship. No. There is no such configuration option, since having EAGER as the fetch type
Issue
1

Issue with cascade delete & add/remove

{         private String name = null;         @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true