Home » Search

About FetchType

51-60 of 130Refresh
Forum
2

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

() + "}" + "[" + id + "]\"" + name + "\"";         }         @ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)         A a; //maps: listA_mapped         @OneToMany(fetch = FetchType.LAZY ... = FetchType.LAZY, cascade = CascadeType.ALL)         List listB_unmapped;     }     @Entity
Forum
2

Merge Issue: Attempt to reuse an existing primary key value

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

Merge with Parent/Child entities not possible

.EntityManagerFactory; import javax.persistence.FetchType; import javax.persistence.FlushModeType; import ... = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "parent", orphanRemoval = true)   @MapKey ... long id;   @ManyToOne(fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST, CascadeType.MERGE
Forum
2

Removing an entity throws exception

=FetchType.EAGER,              optional=false, orphanRemoval=true) private Address address; @OneToMany(mappedBy = "customer", fetch= FetchType.LAZY) private List itemList; @OneToMany(mappedBy = "customer", fetch= FetchType.LAZY) private List
Forum
2

Transaction isolation support?

, and each User have a list of books which the user own defined as @OneToMany(fetch=FetchType.LAZY) ListFetchType.LAZY changes to FetchType.EAGER? In a SQL database, A and B would run in
Forum
1

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

; @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @Column( name = "DATA_ITEMS" ) private List dataItems; @OneToOne(fetch = FetchType.LAZY, cascade
Forum
1

Adding multi part path index on non-embedable object member

{ @MapsId @ManyToOne(fetch = FetchType.LAZY) private Merchant merchant; @MapsId @ManyToOne(fetch = FetchType.LAZY) private List stores; // Setter/Getter
Issue
1

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

, CascadeType.PERSIST}, mappedBy="account", fetch = FetchType.LAZY) @JoinColumn(name = "project_id", unique ... ={CascadeType.MERGE, CascadeType.PERSIST},             mappedBy="account", fetch = FetchType.LAZY
Issue
1

ClassCastException after upgrade to 2.3.5_03

{ @Id String id; @OneToOne(orphanRemoval=true, cascade=CascadeType.ALL, fetch=FetchType.EAGER) private Object payload; @OneToOne(orphanRemoval=true, cascade=CascadeType.ALL, fetch=FetchType
Forum
1

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

javax.persistence.Basic; import javax.persistence.Entity; import javax.persistence.FetchType ... ; } public String getSingleton() { return container; } } @ManyToOne(fetch=FetchType.LAZY) @Id