About fetch

forum_thread

OrphanRemoval not working?

Dear all, I have entities Invoice and InvoiceItem, their relation is defined: public class Invoice implements Serializable { ..     @OneToMany(mappedBy = "invoice", fetch= FetchType.EAGER, orphanRemoval=true, cascade= CascadeType.ALL)     private List<InvoiceItem> invoiceItemList; .. } ... OneToMany ( mappedBy = "invoice" , fetch = FetchType . EAGER , orphanRemoval = ...

 
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?   ... private Long id ; @ OneToMany ( fetch = FetchType . LAZY , cascade = CascadeType . ...

 
api-jdo

hashCode()

Return the hashCode for this instance.(Method of javax.jdo.FetchGroup)

 
forum_thread

Error during cascaded merge

Hello! I have a new problem with ObjectDB 2.5.5_02. This issue appeared after the upgrade from 2.5.5. I get the following exception: ... . ALL , orphanRemoval = true , fetch = FetchType . EAGER ) @ OrderBy ...

 
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?       ... = { CascadeType . ALL } , fetch = FetchType . LAZY /*, mappedBy = "person"*/ ) ...

 
forum_thread

Nexus proxy repository with ObjectDB

I'm trying to setup a proxy repository in my local Nexus to retrieve artifacts from objectdb. Unfortunately I'm not able to get it configured properly and I'm not sure what is wrong. My repository config: ... org.sonatype.nexus.index.DefaultIndexerManager - Cannot fetch remote index for repository "ObjectDB" [id=objectdb] as it does not ...

 
api-jdo

PersistenceCapable.READ_OK

If jdoFlags is set to READ_OK, then the fields in the default fetch group can be accessed for read without notifying the StateManager.(Static Field of javax.jdo.spi.PersistenceCapable)

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

 
forum_thread

Weird behaviour with enhanced classes and embedded entities

Hi, I've found some weird behaviour in my project (www.tinymediamanager.org): Sometimes some entries of my ArrayLists with embedded entities are missing. I've hunted the problem down to an enhanced/proxied list in my entity which contains embedded entities and some .add(obj) are simply failing. Here is a small sscce which reproduces the issue: ... ( cascade = CascadeType . ALL , fetch = FetchType . EAGER ) private ...

 
api-jdo

fetchDoubleField(fieldNumber)

Fetch one field from the field manager.(Method of javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier)