About class

91-100 of 200Refresh
Forum
16

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

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
Result
15

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
15

Literals in JPQL and Criteria Queries

type literals represent entity types in JPQL, similar to the way that java.lang.Class instances in ... 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 class
Forum
15

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

Enhancing a class causes it to not save changes.

So when we enhance the Account class, no changes are saved to it. When it is reflection mode, everything works perfectly. In reflection mode, the objectdb log on debug mode refers to classes ... out how ObjectDB is holding on to the old classes, as they have not existed for  months.  I've tried running
Forum
15

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
15

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

query on calendar class

Hello!   I'm looking for help to build query on calendar class. I need to get objects where Calendar.DAY_OF_WEEK is FRIDAY or any other. My class: @Entity public class Cdr {     private static ... =em.createQuery("SELECT c FROM Cdr c where c.start.DAY_OF_WEEK = ?1",Cdr.class); query.setParameter
Forum
15

com.objectdb.o.TEX: Type ... is not found, for a class that's already been enhanced successfully.

to implement Enhancement (because the log always says that the classes are not enhanced). The main class starts like this, and does not reference any persistent classes directly. static void main(String ... .class.getClassLoader()); Here is the output, it seems like the above code does manage to enhance