Fast Object Database for Java - with JPA/JDO support

Internal Website Search

81-90 of 200 resultsRefresh

Entity listener - event instead of object

Hi, Currently I'm playing with entity listener to implement auditing with difference between values in updated entity. There is a problem however with accessing "old" version of object stored in ... store separate entity for given event. Right now I'm using BaseEntity which contains


the persistence context, causing all managed entities to become detached. Clear the persistence context, causing all managed entities to become detached. Changes made to entities that have not been flushed to the database will not be persisted. Since: JPA 1.0 boolean contains(Object entity) Check

Weird behaviour with enhanced classes and embedded entities

entries of my ArrayLists with embedded entities are missing. I've hunted the problem down to an enhanced/proxied list in my entity which contains embedded entities and some .add(obj) are simply failing ... .CascadeType; import javax.persistence.Embeddable; import javax.persistence.Entity; import javax

Problem with entities detection

, one with PostgreSQL, and another with ObjectDB. My problem is with some entities ... is that ObjectDB seems to be ignoring the class fields on the persistence.xml file. Entities need to be in the same package when I called my DAO to be stored successfuly. If the entity is in another package

List of Enum Values in an entity

Entity with an ArrayList of Enums: private ArrayList flags; The flags are stored into ... . If the entity is enhanced, you may see a null value in the debugger before accessing the field ... , the guest class is the only thing I changed in the whole application: package .model.entity

Schema-Update: Deactivation of automatic entity class removing and introduction of a new class remove in the schema config

works correctly we add ALL entity classes to this product. Because we will prevent a data loss ... and to provide for the ProfileMigration application also a plugin which contains the entity classes ... Hello, we got now an exception in a use case in which we removed an entity. Exception in thread "main

Extra uninitialised entities spawned on merge()

In the following, Element is a base entity class, with a bi-directional @ManyToOne-@OneToMany relationship Element owner - List ownedElements, and Example is a subclass entity ... ();     }     @Entity     public static class Element {         private String name

Merge on detached entities

Hello, it is possible to merge detached entities? There are some attached entities which load from the database. The transaction is finished and the entities become detached. In a new transaction the fields of the detached entities will be changed and a merge by em.merge(entity) will be saved

Schema Update

Explains how to handle JPA/JDO database schema evolution in ObjectDB.

Chapter 3 - Using JPA

Explains how to store, retrieve, update and delete entity objects using JPA.

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support