About lazy

release

2.1.1

... Version 2.0.1 Fixed a bug in lazy loading of instances of non enhanced classes. Fixed a bug in ...

 
forum_thread

Why the internal error was thrown?

com.objectdb.o.InternalException at com.objectdb.o.CCH.H(CCH.java:298) at com.objectdb.o.CCH.E(CCH.java:155) at com.objectdb.o.QRM.Vo(QRM.java:226) at com.objectdb.o.MST.Vo(MST.java:988) at com.objectdb.o.WRA.Vo(WRA.java:311) at com.objectdb.o.WSM.Vo(WSM.java:115) at com.objectdb.o.QRR.g(QRR.java:247) at com.objectdb.o.QRR.f(QRR.java:153) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:719) ... q. setHint ( "objectdb.result-fetch" , "LAZY" ) ; return q. getResultList ( ) ; ...

 
release

2.0.0

... (non managed) entity object. Fixed a bug in lazy loading of instances of non enhanced classes. Added Explorer ...

 
forum_thread

Connection is closed (error 526)

Serval times I found the c/s method will close by unknown reason, when I read only the db. ... entire tree into memory. Try replacing EAGER with LAZY . ObjectDB Support ObjectDB - Fast Object ...

 
manual

Entity Management Settings

Explains settings and performance tuning of JPA entities in ObjectDB, the fast Java object database for JPA/JDO.... value is "true" or "false" ) specifies if lazy loading of entity objects content is enabled. Instantiating entity objects ...

 
release

2.1.0

... Version 2.0.1 Fixed a bug in lazy loading of instances of non enhanced classes. Fixed a bug in ...

 
issue

JPQL Case Statements (JPA 2.0)

JPQL 2.0 adds support of CASE statements in queries for conditional expressions (similar switch/case/default in Java), following the SQL syntax. Case statements are currently not supported by ObjectDB.... even when most relationship fields of an entity are forced lazy.   --- Webel IT Australia, "The Elements ...

 
forum_thread

Is 2 level cache in use?

Hi, Is there any way to check, if 2 level cache is in use? Right now I've done two things: 1. objectdb.conf with cache size is placed in WEB-INF directory of my web application. 2. persistence.xml was modified with: ... query. setHint ( "objectdb.result-fetch" , "lazy" ) ; This is an instruction to the ObjectDB server to ...

 
forum_thread

Level 2 cache not hit in @ManyToOne

Hi! I have 2 entities: User and Item, both @Cacheable. Item has @ManyToOne private User user. Level 2 JPA cache is activated and it works ok for find by id (tested by changing data in explorer and reading in my app). Problem 1: find by id on Item it's good, it hits the cache, but not for its field "user". "user" is loaded each time from the DB (tested by changing data in explorer and reading in my app). "user" should also be taken from L2 cache, shouldn't it? Otherwise...it's a huge performance hit. ... the  "objectdb.result-fetch" query hint to LAZY . By doing that you instruct ObjectDB to return object IDs rather than ...

 
api-jpa

javax.persistence.OneToOne

Defines a single-valued association to another entity that has one-to-one multiplicity.(Annotation of JPA)