Internal Website Search

1-10 of 147 resultsRefresh

Problem with @Basic(fetch = FetchType.LAZY)

I have a class where two fields are annotated with @Basic(fetch = FetchType.LAZY ... public class Sample { private String title; @Basic(fetch = FetchType.LAZY) private String description; @Basic(fetch = FetchType.LAZY) private String code; public Sample

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

Hi, I came across a weird behavior when using fetch=FetchType.LAZY in a complex code ... =FetchType.EAGER, cascade = CascadeType.ALL) private LinkedList<OdbObject> referencedObj ... ="pre-java"> @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL) private LinkedList<

@OneToMany(fetch = FetchType.LAZY) list is always null

Hello. @OneToMany(fetch = FetchType.LAZY) doesn't work when using EJB or ... ; @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) private List<Child> ... Parent { // ...id @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL) private

@Lob @Basic(fetch = FetchType.LAZY) is loaded when it's not needed

; @Lob @Basic(fetch = FetchType.LAZY) private byte[] content;FetchType.LAZY. How can I fix this memory issue? Vladiator Vlad Myachikov FetchType.LAZY

javax.persistence.FetchType

class="type">FetchType java.lang.Object java.lang.Enum<javax.persistence.FetchType> javax.persistence.FetchType Implemented

values()

">FetchType" title="Enum in javax.persistence">javax.persistence.FetchTypeFetchType" title="Enum in javax.persistence">FetchType ... ">for (FetchType c : FetchType.values()) System.out.println(c) Returns

valueOf(name)

Static Method FetchType" title="Enum in javax.persistence">javax.persistence.FetchTypeFetchType" title="Enum in javax.persistence">FetchType valueOf

FetchType.LAZY

Enum Constant FetchType" title="Enum in javax.persistence">javax.persistence.FetchTypeLAZY Defines that data can be lazily fetched. Since: JPA 1.0

FetchType.EAGER

Enum Constant FetchType" title="Enum in javax.persistence">javax.persistence.FetchTypeEAGER Defines that data must be eagerly fetched. Since: JPA 1.0

Retrieving JPA Entity Objects

="/api/java/jpa/ManyToOne/fetch">fetch=FetchType">FetchType.FetchType/LAZY">LAZY) private Employee manager; : } The default for non collection and map references is FetchType">FetchType.