About lazy

forum_thread

Upgrade to 2.4.1_02

Hi there, The upgrade to 2.4.1_02 fixed the initial problem, however there still seems to be an issue. To me it appears that Embeddable might be being lazy loaded, but I cannot be sure. I have attached a testcase demonstrating this issue. Its failing on the merge. Thanks P. ... an issue. To me it appears that Embeddable might be being lazy loaded, but I cannot be sure. I have attached a testcase demonstrating ...

 
forum_thread

Transaction isolation support?

I am looking at using ObjectDB for our new project, and its looking good so far. But I have been unable to find any documentation about how transaction isolation is handled. For example: What happens If I am reading data in transaction A, and then transaction B commits while A is reading. (Especially if using LAZY fetch sub object). Do I always just get the list of objects as it looks when the fetch start? Martin   ... B commits while A is reading. (Especially if using LAZY fetch sub object). Do I always just get the list of objects as it looks ... the user own defined as @OneToMany(fetch=FetchType.LAZY) List<Book>bookList; (And in this example, there is only 1 ...

 
forum_thread

Fetch a whole entity graph eager

Hello, I have two question at you. Are you provided JPA 2.1 annotation @NamedEntityGraph in next version ObjectDB 3.0? And do you know an easy possibility to get an entirely eager entity graph with all depended entities which we can use as a detached full accessible entity graph outside a transaction without lazy loading? Best regards ... full accessible entity graph outside a transaction without lazy loading? Best regards ...

 
forum_thread

composite index not used in query

we defined a composite index for class Action: @Index(name="ssst",members={"startDate","state","subType","type"}) and an index for the OneToMany @OneToMany(fetch=FetchType.LAZY) @Index  public List<ObjectNode> objectsInCharge = new ArrayList<ObjectNode>(); on running a query like ... OneToMany ( fetch = FetchType . LAZY ) @ Index public List<ObjectNode> ...

 
forum_thread

Relationships and tracking changes

3. Object relationship I try to create a 1->n relation (EBVerlag is 1 and EBUser is n) between two tables: Table "EBVerlag": ... OneToMany ( fetch = FetchType . LAZY , cascade = CascadeType . ALL , mappedBy = ...

 
api-jpa

OneToOne.fetch

(Optional) Whether the association should be lazily loaded or must be eagerly fetched.(Annotation Element of javax.persistence.OneToOne)

 
api-jpa

OneToMany.fetch

(Optional) Whether the association should be lazily loaded or must be eagerly fetched.(Annotation Element of javax.persistence.OneToMany)

 
forum_thread

"Failed to serialize instance" of Set problem

Hi, I'm trying to persists objects defined as follows: @Entity @Inheritance(strategy = InheritanceType.SINGLE_TABLE) public abstract class AbstractContainer { ...   @OneToMany(fetch = FetchType.LAZY, mappedBy="parent")   private Set<AbstractContainer> abstractContainers = com.google.common.collect.Sets.newIdentityHashSet(); } Got the following exception: ... OneToMany ( fetch = FetchType . LAZY , mappedBy = "parent" ) private ...

 
api-jpa

ElementCollection.fetch

(Optional) Whether the collection should be lazily loaded or must be eagerly fetched.(Annotation Element of javax.persistence.ElementCollection)

 
forum_thread

Global way to set Lazy-loading fetch functionality for all the fields

Hi, for cascading persist, I have 3 choices: - Either locally (@OneToOne(cascade=CascadeType.PERSIST)) - Either at objectdb level (<cascade-persist always="auto" on-persist="false" on-commit="true" />) - Either at JPA global level (orm.xml).   For defining fetch policy, I know the local way to do it (@ManyToOne(fetch=FetchType.LAZY)). Is there any way to do it at objectdb level or JPA global level?   ... I know the local way to do it (@ManyToOne(fetch=FetchType.LAZY)). Is there any way to do it at objectdb level or JPA global ... 2012-07-15 20:56 Lazy / Eager can only be set locally per relationship, and for some extent also ...