About run

issue

com.objectdb.o.InternalException: null

After an error in a @PrePersist method in an Entity class, the database stopped working. Fortunately this was in development, but still worrying! The Entity class ... javax.swing.RepaintManager$3.run(RepaintManager.java:811) at javax.swing.RepaintManager$3.run(RepaintManager.java:794) at ... javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1680) at ... java.awt.EventQueue$3.run(EventQueue.java:697) at java.awt.EventQueue$3.run(EventQueue.java:691) at ...

 
forum_thread

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) with an optimistic locking strategy supported by a version field. Is it possible to prevent the increment of the version of entity E when entities are added to or removed from the collection? Something like the equivalent of @OptimisticLock(excluded=true) in Hibernate? Thanks, Farid ... Adding an index on the owner side could make this query run faster. ObjectDB Support ObjectDB - Fast ...

 
forum_thread

Database size is much larger than expected (x2)

I store images into objectdb. The schema is : <URI>::=(<sUrl>, <cMark>, <iSize>, <baBody>, <id>) <sUrl>::=String <cMark>::=char <iSize>::=int <baBody>::=byte[] <id>::=@ID So simple a class will fail after 155,648 insertions with -Xmx1432m, ... Question 3: The following messages will occur when run in Eclipse 3.5 in XP. [ ObjectDB 2.2.9_03 Enhancer ] ...

 
forum_thread

How to change properties in urls2.xml?

Hello, I am using objectdb in an embedded case with network private access to each database. I see it exists a file name "urls2.xml". <url><main>/var/lib/tomcat7/db/myDb.odb;user=admin;password=admin</main><alt>objectdb://127.0.0.1:38059/;user=$code;password=a2e54ea3-d889-41a7-953c-dabc42877742</alt></url> This file is autogenerated by objectdb. And it describes the locals databases url and their port / user / password properties. ... need. Do you want to use the embedded server mode, i.e. to run a database in embedded mode and still connect to it in client-server mode? ...

 
release

2.0.1

Release date: 2010-10-05 Download (3.39 MB) Binary:  objectdb-2.0.1.zip ObjectDB 2 is already in use in production in several applications and is ...

 
manual

Chapter 6 - Configuration

Explains how to configure and tune ObjectDB, the fast Java object database for JPA/JDO. The ObjectDB configuration file contains one <objectdb> root element with seven subelements: <objectdb > <general > ... </general > <database > ... </database > ...

 
manual

[ODB1] Chapter 4 - JDO Metadata

Shows how to define JDO metadata for persistence capable classes.... instances), otherwise it is ignored by ObjectDB. You can run the Index Rebuilder from the Explorer, as explained in section 9.4 , or ...

 
forum_thread

Should derived fields of an EmbeddedId be manually maintained by app code?

If I have an Entity which has a primary key which is derived and I am implementing it using @EmbeddedId, am I responsible for maintaining the derived fields of the @EmbeddedId? I could not find anything in the JPA 2.0 spec http://download.oracle.com/auth/otn-pub/jcp/persistence-2.0-fr-oth-JSpec/persistence-2_0-final-spec.pdf?e=1317047713&h=54831c176e81a244a4c309e13eba0b27 which tells me what to expect. ... make the whole thing simpler to read. 3) If you run the test case      a) With DEMO_MODE set ...

 
manual

[ODB1] Chapter 7 - JDOQL Queries

Explains how to use JDOQL, the Java/JDO Query Language. There are various ways to retrieve objects from an ObjectDB database, as shown in section 6.3 . An Extent , for instance, can be used to retrieve all the instances of a specified persistent class. When a more selective retrieval is needed, JDOQ ...

 
forum_thread

AttachNotSupportedException

Good morning, OS: Windows Server 2008 R2 64 bit Java: Java Server JRE 8u121 for Windows x64 ObjectDB: version 2.6.9 build 5 Problem description: ObjectDB server will start and function normally (?) but an exception is logged: "java.lang.NoClassDefFoundError: com/sun/tools/attach/AttachNotSupportedException" (see attachment to this thread). #1 2017-01-31 10:30 Good morning, OS: Windows Server 2008 R2 64 bit Java: Java Server JRE 8u121 for Windows x64 ...