About lazy

release

2.4.1

... Initial attempt to enable navigation through lazy loading from detached objects ( feature request #48 ). ... Version 2.0.1 Fixed a bug in lazy loading of instances of non enhanced classes. Fixed a bug in ...

 
forum_thread

Beginners questions

Hello !! I am new in JPA / ObjectDB development and I have many questions: 1. If I understood correctly, ObjectDB is an implementation of JPA standard (currently 2.0)? 1.1. Is ObjectDB on the same level like Hibernate with only difference that Hibernate stores the data in a RDBMS and ObjectDB has its own format?   ... OneToMany ( fetch = FetchType . LAZY , cascade = CascadeType . ALL , mappedBy = ...

 
forum_thread

Bidirectional OneToMany is slow on updated items

Hello, I have a problem with the following situation. I insert persons with addresses. In the first run, they are all new with a new address. It runs fast. In the second run, the persons are all loaded and got a second address. This seams to be much slower. The Entities are all enhanced by the javaagent (which you can see in the contained eclipse launch configuration) Is there any way to speed it up?       ... . ALL } , fetch = FetchType . LAZY /*, mappedBy = "person"*/ ) private Set<Address> ...

 
release

2.7.0

... Version 2.4.5 Added support of lazy loading of mapped by (inverse) singular relationships ( issue #148 ). ... Initial attempt to enable navigation through lazy loading from detached objects ( feature request #48 ). ...

 
release

2.6.9

... Version 2.4.5 Added support of lazy loading of mapped by (inverse) singular relationships ( issue #148 ). ... Initial attempt to enable navigation through lazy loading from detached objects ( feature request #48 ). ...

 
api-jpa

javax.persistence.OneToMany

Defines a many-valued association with one-to-many multiplicity.(Annotation of JPA)

 
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

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

 
forum_thread

New to Product & Having An Issue

Greetings ObjectDB Users! I'm new to the product, and I've setup a simple test after reading the tutorial, and I'm running into some issues with queries, specifically querying by primary key.   I have a domain object class Called Department, which has a member of type DomainId.  DomainId has two member fields:  String accountId and String objectId.  The following code shows these two classes.... OneToMany ( fetch = FetchType . LAZY ) public Set<Person> getEmployees ( ) ...

 
api-jpa

OneToOne.fetch

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