ObjectDB ObjectDB

Internal Website Search

71-80 of 200 resultsRefresh
72

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
71

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. <entities> <enhancement agent="false" reflection="warning" /> We have an ANT script in “com.btc.ep.base.dal.impl” to enhance the classes. The log
71

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") 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<T> extends [SomeOtherEntity] implements IValue<T> { @Entity public class BooleanValue extends Value<Boolean
69

Schema Update: class hierarchy change

Hello, we try to change the class hierarchy of an Entity. You wrote www.objectdb.com/database/forum/899 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
68

Schema update: package, class and field

it like this: <schema> <package name="com.btc" new-name="com.btc" > <class name="internal ... >   <package name="com.btc.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
68

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
15

SELECT clause (JPQL / Criteria API)

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

JPA Persistence Unit

A JPA Persistence Unit is a logical grouping of user defined persistable classes (entity classes, embeddable classes and mapped superclasses) with related settings. Defining a persistence unit ... >packedEntity.jar</jar-file> <class>sample.MyEntity1</class> <class>sample.MyEntity2</class
14

JPA Primary Key

and its primary key. Primary key values are unique per entity class. Instances of different entity classes, however, may share the same primary key value. Only entity objects have primary keys. Instances ... key field: @Entity public class Project { @Id @GeneratedValue long id; // still set
14

JPA Metamodel API

details on managed classes and persistent fields and properties, similarly to the ability that Java ... to retrieve sets of types: // Get all the managed classes: // (entity classes, embeddable classes, mapped super classes) Set<ManagedType> allManagedTypes = metamodel.getManagedTypes

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