About event

forum_thread

Cast exception?

Somehow I am unable to persist an entity class I wrote with manual @Id. I have a small Player class and I wish to store it with user ID as the primary key. So I declared the (only) primary key field as: @Id public int uid; This is how I'm persisting the instance: ... cast to database.entity.Player Description: Error during event handling: java.lang.ClassCastException: database.entity.Player cannot be ...

 
forum_thread

Embedding ObjectDB on server application

I'm trying to integrate ObjectDB as part of a server software I am developing. I'm a little lost at the connection file path for the persistent factory. So if I want to pass in the database file path, with relative path, where exactly is it relative to? So I did a test and just wrote: EntityManagerFactory emf = Persistence.createEntityManagerFactory("test.odb"); But I got: Exception: javax.persistence.PersistenceException Message: No Persistence provider for EntityManager named test.odb ... objectdb:$objectdb/test.odb Description: Error during event handling: javax.persistence.PersistenceException: No Persistence provider ...

 
forum_thread

NullPointerException in ENH.g(ENH.java:401)

Hi, I experience a NullPointerException inside the objectdb code with the following stacktrace: ... the error on request since I do not know the exact event which causes this state. Is there any other way to fix the database ... database: com.mvolution.domain.entities.event.Participant: transient (non entity class), used as the field type ...

 
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. ... (the old and the new) in the new schema, and use a JPA event callback to make the conversion. In V1.1 your class will include ...

 
forum_thread

Working with a cleared cache

I'm working on trying to improve the performance of our database processing class and I'm attempting to keep the L1 cache within the PersistenceManager cleared in an effort to reduce its memory footprint. The code snippet below is part of a Callable task that is run repeatedly with a given list of commands. When I run the code as written I start getting the stack traces that are listed.  However, if I comment out the calls to makeTransactionalAll() and evictAll() everything works.... there are many restrictions on code in JPA/JDO lifecycle event callbacks. ObjectDB should produce better error messages, but if the same ...

 
forum_thread

Updating Entities

Hello, I'm currently writing a program using JavaFX and ObjectDB and I'm encountering a problem with Entities not sending their updates to each other. I have two Entities in question at the moment: Employee and Paygrade. ... What I want to know is... How I can force an event in EntityManager paygradeDB to affect EntityManager employeeDB ? ...

 
page

Apache License, Version 2.0, January 2004

... this License. 8. Limitation of Liability . In no event and under no legal theory, whether in tort (including negligence), ...

 
forum_thread

Problems down-casting in WHERE clause

I have a family of related types, like this: @Entity class Base { String val1; String val2; }; @Entity class Derived1 extends Base { String val3; }; @Entity class Derived2 extends Base { String val4; };  I'm trying to implement a query which will return all Base objects which have a given string within any of their String-typed fields.  The query I'm using looks somewhat like this: ... the following simpler query: SELECT e FROM Event e WHERE TYPE ( e ) = Practice AND ( ...

 
issue

EOFException

Not sure if you'll be able to help with this but I've had an application get into a state where it cannot access anything from the database - queries fail with the following exception: ... while it is open by ObjectDB)? Any special event before that failure (e.g. power failure? shutdown? process kill?) ...

 
api-jdo

javax.jdo.Query

The Query interface allows applications to obtain persistent instances, values, and aggregate data from the data store.(Interface of JDO)