About class

101-110 of 200Refresh
Forum
10

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
10

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
10

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
10

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
10

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

Deleting JPA Entity Objects

transaction, it can be deleted using the remove method: Employee employee = em.find(Employee.class, 1 ... if the argument is not a an instance of an entity class or if it is a detached entity ... can be referenced by a collection field): @Entity class Employee { : @OneToOne
Manual
10

Detached Entity Objects

): @Entity class Employee { : @OneToOne(cascade=CascadeType.DETACH) private Address address; : } In the example above, the Employee entity class contains an address field that references an instance of Address, which is another entity class. Due to the CascadeType.DETACH
Forum
10

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

Exception after update of indices of Entity class

Hello, I changed the index definition of an entity class from @Index()... to @Indices() and now I ... itself? The stack trace may indicate an issue with an embedded class with no indexes or fields (which maybe had indexes before). Have you changed the indexes of an embedded class? Hello, here are my classes
Forum
10

How prevent post-compile enhancement of non entity classes

.platform.classpath}">