Home » Search

About lazy

1-10 of 111Refresh
Manual
94

Retrieving JPA Entity Objects

is returned. A similar method, getReference, can be considered the lazy version of find: Employee ... using a lazy fetch type: @Entity class Employee { : @ManyToOne(fetch=FetchType.LAZY ... FetchType.LAZY in either @OneToOne or @ManyToOne annotations (currently ObjectDB does not distinguish
JPA Doc
61

FetchType.LAZY

Enum Constant javax.persistence.FetchType LAZY Defines that data can be lazily fetched. Since: JPA 1.0
Forum
30

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

to console a lazy @OneToMany mapped field after a finding entity manager closes. There is a switch DO_VIEW ... /resolved, as one would expect for LAZY: a.listA_mapped:[{A}[4]"ownedElement1", {A}[5]"ownedElement2 ... side of the relationship a.a. Q: Why is the LAZY behaviour different for mapped and unmapped lists ?   package com
Forum
23

Problem with @Basic(fetch = FetchType.LAZY)

I have a class where two fields are annotated with @Basic(fetch = FetchType.LAZY ... ; @Basic(fetch = FetchType.LAZY) private String description; @Basic(fetch = FetchType.LAZY ... = FetchType.LAZY hint. Am I doing something wrong? (I am using objectdb-2.3.6_10)   tia, Wim   LAZY in JPA
Forum
23

LAZY @ManyToOne field functions as EAGER

to console a lazy @ManyToOne field after the entity manager closes. There is a switch DO_VIEW_BEFORE_CLOSE ... and as expected both a LAZY @ManyToOne field and an EAGER @ManyToOne field are viewable: b.cLazy:{C}[2 ... as @ManyToOne(fetch=FetchType.LAZY) ?   package com.greensoft.objectdb.test.console; import
Forum
23

Possible issue with LAZY Loading

Hi, We need lazy loading for one of our large data sets. When I run currently against both 2.4.2 and 2.4.3_01 the db is always returning everything, including the data marked as Fetch.LAZY.  I wrote ... is just causing it to be loaded because I accessed it. Your observation in #2 is correct - LAZY loading
Forum
23

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

Hello. @OneToMany(fetch = FetchType.LAZY) doesn't work when using EJB or something else related ... ") private int id; @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) private List ... > A lazy relationship is available only when the EntityManager
Forum
22

Does ObjectDB support lazy loading?

I'm evaluating ObjectDB 2.0 RC1. Everything works fine except a lazy loading problem. I've a Parent ... support lazy loading, am I right?   ObjectDB does support both lazy and eager loading. If you found ... . The following sample program demonstrates lazy loading: package com.objectdb.test; import java
Forum
22

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

with a query where I have set to use LAZY initalization. It fails when it tries to set a 1:n member (e.g. a Modell has several Artikels) . When I remove the LAZY hint (query.setHint("objectdb.result-fetch", "LAZY");) on the query execution it works. I assume it has to do with the @Transactional
Forum
21

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

@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 ... [] content, since lazy loading of relationships to entities can be loaded lazily. Vladiator