About class

91-100 of 200Refresh
Issue
20

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
20

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

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 ... .jar <class>sample.MyEntity1class> <class>sample.MyEntity2class
Manual
20

SELECT clause (JPQL / Criteria API)

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

Add class to objectdb ?

Hello , i've made blank db project and opened with explorer.jar How can i add class file then push ... blank ? How can i add classes?   I've clicked on create & persist button. Here is the problem i got ... .java:97) Currently to add new classes in the explorer you will have to use a workaround: Run
Forum
20

Class loading problem with private packages in OSGi environment

the classloader of the bundle of the entity. And not his own. The change of the context class loader ... of the entity. And not his own. ObjectDB is in another bundle and can only access classes and interfaces ... and not just by loading the implementing classes (for the persistent interfaces feature). > Creating
Forum
20

How to create dynamic Entity class.

 to create dynamic class. Here i have written some code which is create dynamic class as well as object. Class and object successfully created. And insert data also now problem is only once object ... class is defined by both your class loader and ObjectDB class loader (when instances of the class
Forum
19

Items in list are doubled, when the entity class is not enhanced

Dear all, I have a problem with adding items (entities) into other entity list. When the classes are not enhanced, added items are doubled. Here is an example: @Entity public class Customer ... and setters } @Entity public class Item implements Serializable { private static
Forum
19

Field in Generic Class not persisted?

Hi, I am trying to persist a class which is extended from an generic class - but fields declared inside the generic class are not persisted - is that expected? I assume it can be done b/c this field ... .SerializationUtils; @Entity public class OBJ6 extends ABS{      @Id @GeneratedValue long id
Manual
19

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