About API

forum_thread

Open several objectdb databases the same time

We tried to open objectdb databases from application and got following error: ... can connect the that database using regular embedded mode API, but actually these additional database connections are implemented as ...

 
forum_thread

c.o.jpa.type.EntityTypeImpl.getIdType() returns null

hi, i currently try to use objectdb for a new project. i wanted to use it in combination with spring-data-jpa (M2), but i'm not able to use the automatic repository feature because the following code fails         EntityType<T> type = metamodel.entity(domainClass); ... The JPA Metamodel API is fully supported by ObjectDB, but it seems that the getTypeId method ...

 
forum_thread

Optimization of Map Queries

hi! I am having loads and loads of occurrences of something like ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someProperty ... ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someOtherProperty .. ((com.test.MyEntity) $1.map.get('com.test.MyEntity')).someMoreProperties I need to use full qualified names for casting as well as for the map keys because same entity simple names may occur multiple times. Now I've got two questions: ... variable look like? And how to create it using criteria api? We do have heavy usage of maps so I'd appreciate any ...

 
forum_thread

Handling deleted references

Hi support team, I have a problem when using DELETE query to delete Entity instances. We use the following hierarchy: ... the Profile is also deleted). Since we have a REST based API one could also simply delete an existing instances which may be references ...

 
issue

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

I have marked this as CRITICAL because although there probably is no database integrity problem, the inability to robustly query relationship fields in a web application renders the ObjectDB system seemingly useless. objectdb-2.2.5_10 NetbeansIDE6.9.1 Glassfish3.01 client-server mode. odb file written to db-files/greendesk/greendesk.odb (see persistence.xml), copy of odb output attached. ... an entity is detached. http://www.objectdb.com/api/java/jpa/PersistenceUtil Does not seem to provide a method for ... object. I think that JPA doesn't provide an API for checking detachment but JDO does: log_info ( javax. ...

 
forum_thread

Lazy loading does not work - crud takes long

tomee7.0.0SNAPSHOT,objectdb 2.6.4 The OneToMany Entities are filled with 40.000 Records and they have between 20-40 Columns. It takes over 50s to load all Project Enities that contains the OneToMany Relationships. It should be load lazy but i didnt know why the query fetch all the Data. ... Relation at Example Datapoint (10.000 Recors). The API need for 50 Records 1 second to remove. for ( ...

 
api-jpa

javax.persistence.criteria.From

Represents a bound type, usually an entity that appears in the from clause, but may also be an embeddable belonging to an entity in the from clause.(Interface of JPA)

 
api-jdo

javax.jdo.FetchGroup

FetchGroup represents a named fetch group for a specific class or interface.(Interface of JDO)

 
forum_thread

First persist takes long time

We detected that the first Persist() of an entity take much longer than all subsequent calls. We have a small example (see Appendix) which outputs the following times: ... file (e.g. by accessing the types using the JPA Metamodel API) and then you can duplicate that empty odb file (with the types) when ...

 
forum_thread

package not found running ObjectDB under OSGi

Hi I have created in Eclipse a new plugin from existing jar file and than I tried to enhance my classes (using Ehancer from that new bundle), however I got an error :  [ObjectDB 2.2.8_02] Package datamodel.core.base is not found by the enhancer (error 108) The Enhancer was run in the following way :  ... is not a bug but a limitation. Java doesn't provide an API for locating all the classes in a package. ObjectDB can still locate ...