About file

manual

[ODB1] Chapter 5 - JDO Connections

The PersistenShows how to use database connections and transactions in JDO. ceManagerFactory interface represents a factory of database connections. Its main role is to provide PersistenceManager instances. The PersistenceManager interface represents a database connection. Every operation on a database requires a PersistenceManager instance. The Transaction interface represents a transaction on a database. Every operation that modifies the content of the database requires an active transaction.[toc hidden:1]... Specifies a database location. To access a database file directly using embedded mode, specify either its absolute path or its ... based on the specified properties. Using a Properties File Properties can also be specified in a file, as demonstrated by the ...

 
release

2.6.3

... Added an option to disable temporary file deletion . Added support of using entity classes with ... #237 ). Fixed porting to Java 8 of database file with unexpected HashMap.Entry as a listed type. ...

 
forum_thread

Database Inconsistency or corruption

Hi, since a week I have been trying to find a solution to a strange problem. We are using ObjectDB 2.6.8_02 im embedded mode. The problem is that data gets lost when updating an entity. 1-) Background Consider Three entities: ObjectValue, Attribute and Value. ObjectValue has a one to many relationship to Attribute and Attribute has a one to one relationship to Value. ... not work. The data gets lost. I attached a formatted log file. In the following, I consider the most important part of the log file. Before the update operation, I dump the properties of the object ...

 
issue

javax.jdo.JDONullIdentityException: The identity must not be null.

When stopping my JEE 6 Web Profile application in Glassfish 3.1.1, I sometimes get this exception, yielding in not merging athene.odb and athene.odb$. A bug in objectdb?    bjjl@ps2:~$ ls -l /var/db/athene/ total 122080 -rw-r--r-- 1 bjjl webservd   2621440 2012-05-24 16:40 athene.odb -rw-r--r-- 1 bjjl webservd 122265952 2012-05-24 16:40 athene.odb$ bjjl@ps2:~$   ... Failed to open file '/var/db/athene/athene.odb' So this is a critical issue ... Caused by: com.objectdb.o.UserException: Failed to open file '/var/db/athene/athene.odb' ... The exception in #2 reflects a locked database file (due to a failure during close) and not a corrupted database. Anyway, ...

 
forum_thread

Empty query results after JAR creation

Hi, I struggle with a strange issue. I've embedded ObjectDB in a small application to query cases. Within Netbeans everything works fine but when I create a  JAR File and executed via "Java -Jar xyz.jar", I get either empty results or on some cases a "NoResultException" which appears to report the same issue. I've created a small test case (attached zip file) with sample DB to reproduce the issue.  ... works fine but when I create a  JAR File and executed via "Java -Jar xyz.jar", I get either empty results or on ... I've created a small test case (attached zip file) with a sample DB to reproduce the issue.  In essence, ...

 
forum_thread

migration path from JPA / Hibernate

Hi. Is there a conversion tool or documentation that is of help when migrating an existing JPA solution to ObjectDB? Any recommendations or known pitfalls when it comes to ...   ... and set ObjectDB as the provider in the persistence.xml file . About the data, currently you will have to migrate it by ... Maximum file size: 32 MB 0 ...

 
release

2.6.1

... Added an option to disable temporary file deletion . Added support of using entity classes with ... #237 ). Fixed porting to Java 8 of database file with unexpected HashMap.Entry as a listed type. ...

 
issue

Negative snapshot user count exception

I found the following stack trace in my log files; it's cropped up a number of times: ... 14:05:23 #188 *] transaction Id = 506009, new file size = 297009152, dirty pages = 1, update list s = 2, dirty page map = 1, ... prefix failure, and some other problems (see attached log file). Last week I had inadvertently left the database running with ...

 
forum_thread

How to package orm.xml when using EJB in WAR?

Hi, I have database utility classes in one project, the id's use sequences declared in an orm.xml file for example: ... project, the id's use sequences declared in an orm.xml file for example: < entity class = "com.x.y.z.model.Unit" ... </ provider > < mapping - file >/ META - INF / orm . xml </ mapping - file > ...

 
release

2.6.2

... Added an option to disable temporary file deletion . Added support of using entity classes with ... #237 ). Fixed porting to Java 8 of database file with unexpected HashMap.Entry as a listed type. ...