About API


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


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


Post-compile enhancement fails when static Log4j 2.5 based logger used in Entity

I doubt this is an ObjectDB-enhancer problem, I am however reporting it in case anybody else encounters the problem too. It is mostly also not a concern for my own web app, because in most cases a non-static logging variable can be used in an @Entity.     ObjectDB 2.6.3_04     Apache Log4j2 - 2.5     Mac OS X     jdk1.7.0_51 or jdk1.8.0_60     NetBeans 8.1Beta ... / apache - log4j - 2.5 - bin / log4j - api - 2.5 . jar :/ usr / local / java / apache - log4j - ...



This interface is implemented by a non-binary-compatible JDO implementation to provide state interrogation for non-enhanced persistent classes.(Interface of JDO)


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


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


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


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


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



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