About class

91-100 of 200Refresh
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: package, class and field

we can specify it like this: <class name ... .btc.internal">     <class name="Class2" new-name="com.btc.impl.Class2" />   Thanks. It works. It does work for entities classes but not for embeddable classes
Forum
11

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

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

Super class' field access fails

I have a base class: public abstract class HotObject extends BaseObject { private Integer ... ; } }   And I have an inherited class: @Entity public class HotTag extends HotObject implements ... = em.createQuery("SELECT t FROM HotTag t ORDER BY t.activity DESC", HotTag.class); I get the exception
Forum
10

Problem to use find method on an abstract Class: AbstractMethodError is thrown

mentioning LogicalObject I get AbstractMethodError Please see services.Tester class with the 2 options ... .datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class ... $$$view3.test(Unknown Source) [classes:] at services.PaltzefomatServlet.doPost(PaltzefomatServlet
Forum
10

Field not persisted in abstract class with two level of nesting

Hi, I have a field (embedded TZ1) which is not persisted in class MHD1 (TZ1  extends AS and AS ... public class MHD1 implements Serializable{     private TZ1 timezone;     public MHD1 ... ; @Embeddable public class TZ1  extends AS{     TZ1() {     }         public TZ1(String v
Issue
10

No Entity Class API

Both JPA and JDO are based on accessing and managing data in the database using persistable classes (mainly entity classes in JPA or persistence capable classes in JDO). Usually, this is very convenient. Sometimes, however, it might be useful to access data without user defined persistable classes