About fetch

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

 
api-jdo

FetchGroup.ALL

For use with addCategory and removeCategory calls.(Static Field of javax.jdo.FetchGroup)

 
forum_thread

Updating existing persistence entries

I have stored some instances of MyObject via em.persist(myObjectInstance); I can fetch them and bind them to a kind of property editor in my app (it simply calls the setters to reflect gui editing actions). When I try to persist a object later on, I get an error like com.objectdb.o.UserException: Attempt to reuse an existing primary key value which makes sense to me but I'm missing a em.update() method. ... MyObject via em.persist(myObjectInstance); I can fetch them and bind them to a kind of property editor in my app (it simply ...

 
forum_thread

Retrieving Metamodel without connection

Hello! I use Spring Data JPA. It uses the Metamodel to create repository beans. This triggers a connection to the ObjectDB server. It happens on every start of the Context. If it fails the application isn't available at all. I had the situations multiple times that my database server took longer to boot after a power outage than the tomcat machine. This leads to an unusable application until i restart tomcat. ... i restart tomcat. Other JPA providers are able to fetch the Metamodel without connecting to the DB. I would appreciate it ...

 
api-jdo

setGroups(fetchGroupNames)

Set a collection of groups.(Method of javax.jdo.FetchPlan)

 
forum_thread

Does aggregate function "greatest" work on entity objects?

do not come to the function "compareTo" @Entity public class ChatHistoryItem extends AbstractObject implements Comparable {     private static final long serialVersionUID = 1L; ... ( targetClass = ChatAttachment. class , fetch = FetchType . EAGER ) private ...

 
forum_thread

Items in list are doubled, when the entity class is not enhanced

Dear all, I have a problem with adding items (entities) into other entity list. When the classes are not enhanced, added items are doubled. Here is an example: ... OneToMany ( mappedBy = "customer" , fetch = FetchType . EAGER , cascade = ...

 
api-jdo

makeTransientAll(pcs, useFetchPlan)

Make instances transient, removing them from management by this PersistenceManager.(Method of javax.jdo.PersistenceManager)

 
api-jdo

fetchObjectField(fieldNumber)

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

 
api-jdo

fetchBooleanField(fieldNumber)

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