About manual

manual

Database Replication and Clustering

Replication enables maintaining up to date version of an ObjectDB database on multiple nodes. ObjectDB supports master-slave replication (cluster). When replication (or clustering) is used, the same database is managed on multiple machines (nodes), possibly in different geographic locations. This could help in achieving high availability, ...

 
forum_thread

How to open a running db in ObjectDB Explorer?

Hi! I've just discovered that I can't see the content of a database while it's in use. Is there any way in which I could do that? It's not nice at all to close the application, copy the db in another location, start the application then finally I could explore my data, but it will be just a copy of the data, not the live information. ... 14:03 See this manual page regarding the configuration file path. ...

 
issue

Strange Error with Criteria API and Sorting

We're creating a simple selection (distinct) including an order clause. When watching the created criteria in debugger we get the correct expression: SELECT DISTINCT $1 FROM MyEntity $1 WHERE ((TYPE($1)=class test.MyEntity)) ORDER BY UPPER($1.name) DESC You can see that in the order by there's correctly a "$1" var. Running this (without the type thing before) in the explorer correctly returns the sorted results. However, running this with the criteria API produces this error: ... this error is justified. As explained in the manual : "Only expressions that are derived directly from expressions in the ...

 
manual

Detached Entity Objects

Explains detached entity objects and how to work with detached objects in JPA, including merging them into an EntityManager. Detached entity objects are objects in a special state in which they are not managed by any EntityManager javax.persistence.EntityManager JPA interface Interface used to interact with the persistence context. See JavaDoc ...

 
forum_thread

Externalising persistence.xml properties in Glassfish?

Hi, #1 2011-04-23 08:43 Hi,   I've run into a little bit of a wall with regards to persistence.xml and externalising the ...

 
manual

Online Backup

Online Backup enables backing up an ObjectDB database while it is in active use by applications. The ability to create a backup while the system is running is essential in applications and services that have to be available 24/7/365. An ObjectDB database can be backed up by simply copying or archiving the database file while the database is offline (i.e. when it is not open in an ObjectDB server and not in use by any application), since an ObjectDB database is stored as an o ...

 
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.  ... the DB file manually, it was just not mentioned in the manual so I was assuming that the DB would be copyied correctly during ...

 
forum_thread

find() delay

Hi, I tried objectdb in following steps: 1, for 1 to 30 {trans.begin(); create typeC o; em.persist(o); trans.commit();} 2, for 1 to 30 {p = em.find(typeC.class, i); print(p)} So simple a test, there is no result in one go; I have to disable step 1 and run again, then Step 2 output the expected results. I tried em.flush(), em.clear(), etc.. that do not work. Any idea? TIA ... the inverse fields, then is there a conflict between manual and auto relations? Suppose the Employee and the address are all regular ...

 
manual

JPA Lifecycle Events

Explains how to use JPA lifecycle events (client side triggers) with callback methods and listener classes. Callback methods are user defined methods that are attached to entity lifecycle events and are invoked automatically by JPA when these events occur. This page covers the following topics: Internal Callback Methods ...

 
forum_thread

Master database switching to read-only mode, possibly caused by slave failure

We had a database failure causing a production outage. Both master and slave databases have failed, slave became unresponsive and the master switched to read-only mode. By the look of it the slave database failed first and possibly caused the master to switch to read-only mode. The sequence of events was: ... As you know, master failure currently requires manual intervention to get out of READ ONLY mode, so your description may match ... > As you know, master failure currently requires manual intervention to get out of READ ONLY mode, so your description > ...