About class

91-100 of 200Refresh
Forum
12

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
Forum
12

Dependency from enhanced classes to the objectDB library

Hello, we have a Question to the dependency from enhanced classes (required for license ... classes. We have an ANT script in “com.btc.ep.base.dal.impl” to enhance the classes. The log of the enhancer is correct. But in
Result
12

Posting to ObjectDB Website - Important Instructions

. Whenever possible: Use a single Java file with one main class + static inner classes for entity / embeddable classes. Avoid dependency on external libraries. Use a console application with a main method ... ; import java.util.*; import javax.persistence.*; public final class MyTestCase {     public
Manual
12

Literals in JPQL and Criteria Queries

Entity type literals represent entity types in JPQL, similar to the way that java.lang.Class instances ... retrieval by type. In JPQL an entity type literal is written simply as the name of the entity class (e.g. Country). That is equivalent to Country.class in Java code. Notice that the name of the entity
Result
12

Posting to ObjectDB Website - Important Instructions [2018-08-06]

. Whenever possible: Use a single Java file with one main class + static inner classes for entity / embeddable classes. Avoid dependency on external libraries. Use a console application with a main method ... ; import java.util.*; import javax.persistence.*; public final class MyTestCase {     public
Forum
12

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 extends [SomeOtherEntity] implements IValue { @Entity public class BooleanValue extends Value
JDO Doc
11

javax.jdo.PersistenceManager

addInstanceLifecycleListener(InstanceLifecycleListener listener, Class... classes) Adds the listener instance ... . The classes parameter identifies all of the classes of interest. If the classes parameter is specified as null, events for all persistent classes and interfaces will be sent to listenerInstance
Forum
11

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
Manual
11

WHERE clause (JPQL / Criteria API)

the WHERE predicate. For entity classes with millions of objects in the database there is a huge ... as follows: CriteriaQuery q = cb.createQuery(Country.class); Root c = q.from(Country.class); q.select(c); ParameterExpression p = cb.parameter(Integer.class
Manual
11

Auto Generated Values

@GeneratedValue with the AUTO strategy: @Entity public class EntityWithAutoId1 { @Id @GeneratedValue ... definition is equivalent: @Entity public class EntityWithAutoId2 { @Id @GeneratedValue long ... is very similar to the AUTO strategy: @Entity public class EntityWithIdentityId { @Id