About fetch


Database Inconsistency or corruption

Hi, since a week I have been trying to find a solution to a strange problem. We are using ObjectDB 2.6.8_02 im embedded mode. The problem is that data gets lost when updating an entity. 1-) Background Consider Three entities: ObjectValue, Attribute and Value. ObjectValue has a one to many relationship to Attribute and Attribute has a one to one relationship to Value. ... fetch =   javax.persistence.FetchType.EAGER, orphanRemoval = true) ...      fetch=javax.persistence.FetchType.EAGER)    ...



The Query interface allows applications to obtain persistent instances, values, and aggregate data from the data store.(Interface of JDO)



Hello, we got this exception when using ObjectDB: ... {   @ OneToOne ( fetch = FetchType . EAGER ) private CacheableJobInfo ji ;   @ OneToOne ( fetch = FetchType . EAGER ) private CacheableJobLog ...


[ODB1] Chapter 4 - JDO Metadata

Shows how to define JDO metadata for persistence capable classes.... /> <field name = "f3" default-fetch-group = "true" /> <field name = "f4" default-fetch-group = "false" /> <field name = "f5" ...


Query vs Extent for retrieving data

I'm running into a problem where data that is retrieved via a Query comes out null, but when I retrieve it using an Extent everything is present. We have a very simple class: public class PositionReportManagerBean implements InstanceCallbacks { private int maxReports; private List<PositionReportBean> reports; } I have a test file with 5 instances of PositionReportManagerBean, each with maxReports set to 10 and 5 PositionReportBeans in reports. I can verify with the ObjectDB explorer that all of the data is there. If I call ... @Persistent(defaultFetchGroup="true") , or use fetch groups do define more complex fetch strategies. ObjectDB Support ObjectDB - ...


[ODB1] Chapter 3 - Persistent Classes

Explains what a persistence capable class is and which types are supported by JDO.... is being loaded from the database, just after the default fetch group fields (see Chapter 4 ) are initialized. A possible action is to ... fields in this loaded object that are not in the default fetch group, should not be accessed by this method. void ...


GWT RPC is throwing serialization exception when I have object db date value

Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'objectdb.java.util.Date' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = Sat Jan 29 00:00:00 PST 2011    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:614)  ... after detaching. @ OneToMany ( fetch = FetchType . EAGER , cascade = CascadeType ... you have to load the collection, and using EAGER fetch mode is one way to do that. ObjectDB Support ...


Trouble bug on explorer

Hello having trouble when i try to push new objects from class. I got exception from explorer.     ... ;     @ OneToOne ( fetch = FetchType . EAGER ) private Language mainLanguage ; @ OneToMany ( fetch = FetchType . LAZY ) private ...



Interface used to interact with the persistence context.(Interface of JPA)


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