About FROM

forum_thread

Optimistic lock failed

Hi, I frequently see exceptions during development such as com.objectdb.o._RollbackException: Failed to commit transaction: Optimistic lock failed for object com.example.MyEntity#3 (object has version 1 instead of 3) Could you please explain what this means, and what I can do about it. Thanks you, Carl     ... work unless your accessing that object in the database from multiple methods simultaneously or you've got some super wierd ...

 
issue

Internal exception on flush

Today I received the exception below on running the following code: ... a test after further investigation. If there is any info from the exception which could help with this it'd be appreciated. ...

 
forum_thread

Accessiblity of attributes in entities in several OSGi-Bundles

Hello, we have a problem with enhanced entities. It is very important to solve this issue. There are three entities in two OSGi-Bundles and we execute importRequirements() in RequirementServiceImpl: __________________________________________________________ Bundle A: @Entity class ModelElementImpl { ... a new entity object that was persisted in one transaction from another concurrent transaction that cannot yet see the operations of the ...

 
forum_thread

Enhancer failure: Failed to process class file of type

Stack trace below:   ... thanks, that explains what happened, I ran gradle from the command line, which is using Java 9, and got the error. By my ...

 
forum_thread

Problem undeploying Glassfish3.1.1 web application cleanly

objectdb-2.3.7_18 When I undeploy a Glassfish3.1.1 web application when using @PersistenceContext EntityManager injection, using the undeploy feature under the Glassfish server node  of Netbeans7.1, I get the following otherwise harmless error: ... injection)? Could not build GuestBook example from Maven, but I could create a new Netbeans web application and copy example ...

 
issue

Eager load Map

I'm having an issue eager loading a nested map. I've attached @ManyToMany(fetch=FetchType.EAGER) attributes to no avail. If the map is viewed in the debugger or force iterated in the code it loads ok. The attached code attempts to replicate the scenario. Its not an exact match but is the best I could come up with without replicating the whole system. The test creates an object, persists it to a db and re-loads it. The EntityManager is closed before accesing any fields. Finally the nested map is accessed and printed to screen. ... here is that I'm using "find" to retrieve the objects from the database. If you run the test as-is the objects are retrieved ...

 
forum_thread

Log is almost empty (log level 'trace')

Hi, Using 2.4.6_01 version on Linux (2.6.18, VPS)..  Just wondering what should I suppose to see in a log file with a log level 'trace'/'debug'.. Trying to fix an issue that server version sometimes accidentally quits without any notice.. My log file (independently on whats specified in config file) has only database open/close messages, some query.compiler info but nothing more..  Is that right behaviour? Are there are server statistics API/logs available? Regards, ... Well, I know it may sounds a bit stupid, but from what I could see server process _just_ quit.. that's why logging issue ...

 
forum_thread

Best practice: Database update/migration of embedded databases in products

Hello Support, what experience do you have for data migration within a product? An example: There are three versions of a product (v1.0; v1.1, v2.0). In each version, the entities have been modified. Attributes added, removed and renamed. If attributes were removed, then only because the data is now held otherwise. ... you can remove the fields firstName and familyName from V2.0.   ObjectDB Support ...

 
forum_thread

Database(*.odb) file size on disk

Hello, we have questions about the file size of ObjectDB database on disk. Can you tell us something about how the deleting of entities affects the size of *.odb files on disk? -Will the released memory always used by new entities? -Will be the database file automatically reduced?   We have created a small test, in which we create and delete entities. It looks like that the released memory are reused but the the file not resized. The database is at the end empty again, but larger than the initial size. ... doctor in repair mode (i.e. building a new database file from an existing database). ObjectDB Support ...

 
forum_thread

connection pooling

how do you handle connection pooling?  I don't understand how to open and close connection, or reconnect. I've referenced the manual here, but where does this go:   The <connection> element   <connection port="6136" max="100" /> The <connection> element specifies how clients can connect to the server: ... This specific configuration is from JDO. ObjectDB supports both JPA and JDO (see the FAQ ). Since ...