Home » Search

About FetchType

11-20 of 132Refresh
Forum
24

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

Hello. I have a class Thing that contains OneToMany list of classes Photo. Photo contains  @Lob @Basic(fetch = FetchType.LAZY) private byte[] content; And after some queries with Thing ... of the photos despite of using fetch = FetchType.LAZY. How can I fix this memory issue? FetchType.LAZY
Issue
23

Cascade.ALL with LAZY fetchtype does not clean up all references on remove

Hello, I have a tree of entity classes that reference others using Cascade.ALL in combination with FetchType.LAZY. If I now delete a root entity using EntityManager.remove all leaf nodes will not ... the database. If you remove the FetchType everything works. Best regards Markus Thank you for this report. Please try build 2.7.2_09. doppelrittberger
Manual
13

JPA Entity Fields

=CascadeType.ALL) MyEntity field2; @OneToMany(fetch=FetchType.EAGER) List field3
JPA Doc
9

javax.persistence.spi.ProviderUtil

of all attributes for which FetchType.EAGER has been specified have been loaded, this method returns LoadState ... of all attributes for which FetchType.EAGER has been specified have been loaded, this method returns ... all attributes with FetchType.EAGER have been loaded, this method returns LoadState.NOT_LOADED
Forum
5

Performance issues on aggregate query

; public Double usedSolutionObjectTypeVersion; @OneToMany(fetch=FetchType.LAZY) @Index public List actions = new ArrayList(); @OneToMany(fetch=FetchType.LAZY) @Index public List childNodes = new ArrayList();   @OneToMany(fetch=FetchType.LAZY) public List
JPA Doc
5

Basic.fetch

Annotation Element javax.persistence.Basic FetchType fetch (Optional) Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched. The EAGER strategy ... value: javax.persistence.FetchType.EAGER Since: JPA 1.0
JPA Doc
5

ElementCollection.fetch

Annotation Element javax.persistence.ElementCollection FetchType fetch (Optional) Whether the collection should be lazily loaded or must be eagerly fetched. The EAGER strategy is a requirement ... strategy is a hint to the persistence provider runtime. Default value: javax.persistence.FetchType.LAZY Since: JPA 2.0
JPA Doc
5

isLoaded(entity)

for which FetchType.EAGER has been specified have been loaded, this method returns LoadState.LOADED ... with FetchType.EAGER have been loaded, this method returns LoadState.NOT_LOADED. If the provider
JPA Doc
5

javax.persistence.Basic

; } Since: JPA 1.0 FetchType fetch (Optional) Defines whether the value of the field or property ... .persistence.FetchType.EAGER Since: JPA 1.0 boolean optional (Optional) Defines whether the value
JPA Doc
5

javax.persistence.ElementCollection

2.0 FetchType fetch (Optional) Whether the collection should be lazily loaded or must be eagerly ... : javax.persistence.FetchType.LAZY Since: JPA 2.0 Class targetClass (Optional) The basic or embeddable