About Time

forum_thread

Exception while accessing the Persistence unit ...?

Hi, I am new to ObjectDB I was trying your eclipse/jee6/glassfish tutorial. I am getting the following exception: #1 2012-04-09 04:39 Hi, I am new to ObjectDB I was trying your eclipse/jee6/glassfish tutorial. I am getting the following ex ...

 
issue

ObjectDB can't be activated

Hello, we are trying to activate objectdb on a virutalized debian 7 server, but do not have any success. Steps we made to activate the server: Bug Version: 1.04 Priority: Critical Status: Fixed Replies: 20 Type:  Bug ...

 
forum_thread

calling persist on an object more than once

results in an error (613) when the transaction is commited: [ObjectDB 2.2.4] javax.persistence.RollbackException Failed to commit transaction: Attempt to reuse an existing primary key value (common.model.UserSession:13) (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:271) at javax.jdo.Transaction$commit.call(Unknown Source)   I submit that there are a number of problems with this: a) the error message is not helpful ... PersistenceException may be thrown at flush or commit time.) The right way to update an entity doesn't include ...

 
forum_thread

On ensuring ID available after persist

This reports on a possible solution to a common problem: I was trialling ObjectDB on an existing, functioning, large JavaEE/JPA web application, which until now had used EclipseLink+MySQL and then Oracle+MySQL. On trying it out on ObjectDB I hit a problem with my very extensive entity wiring code, which relies on an "external" entity object having a non-null id after it has been passed to EntityManager.persist, thus: ... not sure about the performance hit of flushing every time). This can be encapsulated as a wrapping persist(Object) method that also ...

 
release

2.2.0

Release date: 2011-04-03 Download (3.99 MB) Binary:  objectdb-2.2.0.zip You should start by following a  tutorial or reading the manual ...

 
forum_thread

IDs of Entities suddenly became UUIDs?

Hi, We're having our system with ObjectDB 2.4.5 in production since this year April and it works just fine. However, now we've discovered that suddenly partial Objects in some DBs in production do have a UUID String as their id instead of Long which is of course causing a lot of troubles. Note that this even occurrs on the same "Table" -- some saved Entitities of same type do still have a Long ID, others a String UUID. Our Base-Entity everything inherits from is declared as usual with Long: #1 2013-10-17 11:42 Hi, We're having our system with ObjectDB 2.4.5 in production since this year April and it works just ...

 
forum_thread

How to delete M2M relationship?

In user model class I have the following: public class User implements Serializable { ... invocation of the remove method. Removing a set of time slots in one invocation (as in your code) is not supported by JPA. ...

 
manual

Locking in JPA

Explains how to use optimistic locking and pessimistic locking in JPA.... object (when it is stored in the database for the first time) is 1. In every transaction in which an entity object is modified its ...

 
manual

Numbers in JPQL and Criteria Queries

Shows how numbers, arithmetic expressions and numeric functions and operators (MOD, ABS) can be used in JPQL queries. Numeric values may appear in JPQL queries in many forms: as  numeric literals - e.g. 123 , -12.5 . as parameters - when numeric values are assigned as arguments. as  path expressions ...

 
manual

[ODB1] Chapter 9 - ObjectDB Explorer

Explains how to view and manipulate database files in the database explorer. ... the size of the result collection and the query execution time are displayed on the query form. If the query compilation fails, an error ... path of the default server configuration file the first time the server is run in the Explorer, but you can always change the path to ...