Fast Object Database for Java - with JPA/JDO support

Internal Website Search

71-80 of 200 resultsRefresh

JPA Entity Fields

Fields of persistable user defined classes (entity classes, embeddable classes and mapped ... and inverse fields) can be used in both entity classes and embeddable classes. However, the last two groups (primary key and version fields) can only be used in entity classes. Primary key fields

persistence.xml classes not respected by ObjectDB

Hi! I have the following persistence.xml. The problem is that ObjectDB loads all the classes in P1 (+ their embeddable classes). P2 is created properly, but P1 gets all entity classes (from P2 also). How can this be avoided, so that both P1 and P2 get just the classes that were specified to each

Dependency from enhanced classes to the objectDB library

Hello, we have a Question to the dependency from enhanced classes (required for license ... only if we allow the usage of not enhanced classes. We have an ANT script in “com.btc.ep.base.dal.impl” to enhance the classes. The log

objectdb-2.6.9_02 (with "") vs. generic classes with interfaces: detailed investigation

... is old and cannot be used" This report concerns investigation of issues when using with generic classes for "deep" value wrappers with signatures like: @Entity abstract public class Value extends [SomeOtherEntity] implements IValue { @Entity public class BooleanValue extends Value

[ODB1] Chapter 6 - Persistent Objects

, regardless of its type. Instances of persistent classes can become persistent later, as demonstrated by ... is also thrown if the argument to makePersistent(...) is not an instance of a persistent class (as ... the use of makePersistent(...) to instances of user defined persistent classes. However, persistence

Schema Update: class hierarchy change

Hello, we try to change the class hierarchy of an Entity. You wrote that ObjectDB support automatic schema evolution for adding and removing fields and for class ... .EntityManagerFactory; import javax.persistence.Persistence; public final class Test { public static void main

SELECT clause (JPQL / Criteria API)

query = em.createQuery("SELECT c FROM Country c", Country.class); List query = em.createQuery( "SELECT FROM Country AS c", String.class); Listclass); List results = query.getResultList(); for (Object[] result : results

Schema update: package, class and field

it like this: <class name="internal ... >       <class name="Class2" new-name="com.btc.impl.Class2 ... for entities classes but not for embeddable classes. Do you have a solution for embeddable classes? btc

Duplicate Entity class names causes Exception in Query

I have two Entities which have the same class name but reside in different packages, only one of them is mentioned in the persistence.xml. I a NamedQuery I use the unqualified class name ... ) ... 64 more Here is the class doing the query on objdbTest.Item package objdbTest; import

Using the wrong class to access a database

; // imports public class Main { public static void main(String[] args) { run(); } static void run() { System.out.println("Test 1"); System.out.println("Point.class: " + Point.class ... Point p", Point.class); List results = query.getResultList(); System.out.println

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