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

Changes in detach behaviour?

Hello! Today i upgraded to 2.3.5_04. My program stopped working. After some debugging i found out that all fields of retrieved objects are on their default value till i first call a getter or detach them explicitly. Up to 2.3.4 they where initialized immediately. The problem in my case is that i have a Spring DAO. It does the following: I call for example getUserByName("blub). ... use version 2.3.4 then the output is "username". I think lazy fetching of primitive fields is a bit to much. ...

 
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 ...

 
forum_thread

Does ObjectDB support @Parent for @Embeddable reference to parent?

AFAIK JPA does not directly support an @Embeddable referencing the parent in which it is @Embedded. But Hibernate has a special @Parent for it (see Entity extensions 2.4.3.4.@Parent). @Entity public class Person { @Embeddable public Address address; ... } @Embeddable public class Address { @Parent public Person owner; ... } Is there a safe and recommended way of achieving this in ObjectDB ? ... as shown on the first post. Sorry, excuse lazy copy-and-paste from stack forum posting (I had already noticed it). ...

 
release

2.0.0

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

 
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.2.1

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

 
forum_thread

Is it ok to put list or map of embeddable objects in entity ?

Hi, Is it ok to put list or map of embeddable objects in entity? I mean, for example : @Entity public class Entity_A {     (...)     @Embedded     List<Class_B> bList;     @Embedded     Map<String, Class_C> cMap; (...) } where Class_B and Class_C are annotated as @Embeddable ? In the examples, there is only situation where there is one single instance of embeddable class in entity. And what happens if I do operation like : ... JPA implementations handle this. About the slow lazy loading - a test case that demonstrates it is needed to evaluate this. ...

 
release

2.2.0

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

 
forum_thread

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

I have two classes a Container type class and another class that is 'contained' by that class. The contained class, CompoundKeyMapItem, represents an alternate implementation of an object held in a Map, and uses a Compound Primary Key. The contained class therefore uses an @IdClass. This all works fine on Eclipselink. However when I try and run this in ObjectDb I get the following error; ... ManyToOne ( fetch = FetchType . LAZY ) @ Id private Container container ; @ ...