About embedded

issue

ObjectDB BIRT Driver Update

The ObjectDB BIRT/ODA driver is an extension of the open source Business Intelligence and Reporting Tools (BIRT) that adds support of ObjectDB as a data source and JPQL as a data set query language. ... In the current implementation ObjectDB is embedded in the driver. Any 2.x version of the driver can work against any ObjectDB 2.x database file in embedded mode, since the database file format is fixed for all 2.x versions. ...

 
forum_thread

Debuging query before execution

Hi, Is is possible in any way to get string representation of a query right before execution, after setting parameters? Of course it's easy to print out query string when we build it by concatenating many strings, but even then we miss attributes. ... do you suggest? The query string with parameter values embedded, replacing the parameter names? I think it would be better to ... The query string with embedded values would be nice for simple queries with up to 3 parameters. But ...

 
manual

JPA Entity Fields

Explains how to define and use primary keys in JPA, including composite and embedded primary keys.... type is embeddable may optionally be marked with the @Embedded javax.persistence.Embedded JPA annotation Specifies a persistent field or property of ...

 
forum_thread

OptimisticLockException

Have read read the documentation on optimistic locks, still not sure how to deal with these exceptions: [ObjectDB 2.2.5_04] javax.persistence.RollbackException Failed to commit transaction: Optimistic lock failed for object   ... Having used objectdb for nearly 10 years now, all in embedded mode, I'm a bit surprised by its behavior in client/server mode. ... The behavior has nothing to do with client-server vs. embedded mode. This is how it works in ObjectDB 2.x in both embedded and ...

 
forum_thread

OptimisticLockException

Ran into this error for the first time (after many years of using odb): Caused by: com.objectdb.o._OptimisticLockException: Optimistic lock failed for object model.UserSession#28 (object has version 2 instead of 3) Also the first time I'm using odb in C/S mode rather than embedded. Also have the Explorer open Questions: a) what is it about? ... the first time I'm using odb in C/S mode rather than embedded. Also have the Explorer open Questions: a) ... look at first. I've never used ObjectDB in embedded mode, but I'm thinking that since your instance is changed, but ...

 
issue

stress test -> com.objectdb.o.InternalException: null

I am running a stress test with 2 users, each making a request to the JSON API (which uses as storage ObjectDB) each 50 milliseconds. An API call might have between 1-4 db calls, but they are relatively light, and the db has just a few MB at the moment. After a few minutes I got this exception. If I decrease the load, it doesn't happen. If I increase it, I get it very often. Any solution/fix? A sample project is very hard, if not impossible, to create, because it uses all the system. ... be interesting to check the same test, if possible, in embedded mode. This could narrow the problem. But eventually a test ... CPU utilization during the load. I'll do the embedded experiment and create a sample next weekend, hopefully. PS. ...

 
forum_thread

Dirty checking

Hi, wondering if anyone knows the best way to detect which objects have been changed in the database. ie: which objects, and which collections of objects, have been dirtied.     ... single threaded access to a single EntityManager in an embedded application, ie I can guarentee that no other transactions will ... not sure how ObjectDb handles that, am guessing that for embedded apps you have the entire graph already. But just to be safe ...

 
forum_thread

how to query by properties of onetomany relations? (Error 990)

the following code fails em.createQuery("select f from Foo f where f.bars.name = ?1", Foo.class).setParameter(1, barName) stacktrace: ... have been using mongodb and such a query was possible for embedded objects. i adapted my query and it works like expected. ... also work if the objects in the collection are marked @Embedded instead of @Entity? Thanks! ...

 
forum_thread

Difficulty with the BIRT plugin

Hi, am trying to get the BIRT plugin to work. Firstly: connecting to an odb server doesn't seem to work (incompatible versions) - but there isn't any way to find out what version the BIRT plugin is using. Next: connecting directly to a file datasource seems to work, in the sense that I can ping the database, however, there doesn't appear to be any way to create a new Data Set from the Data Explorer, as suggested in the online manual: ... Server, since this is the version of ObjectDB that is embedded in the plugin (it will become more flexible when support of using ... the server. Do you see a difference between using embedded mode or client/server mode? I understand that you are trying ...

 
manual

JPA Persistable Types

Explains how JPA manages types, including entity classes, embeddable classes, primitive types, wrappers, string, date, enum, collections and maps.... in the database directly. Other persistable types can be embedded in entity classes as fields . In addition, only instances of entity ... an embeddable class can only be stored in the database as embedded objects, i.e. as part of a containing entity object. A class ...