About class

111-120 of 200Refresh
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
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

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
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}">
JDO Doc
10

javax.jdo.Query

. There are three required elements in a Query: the class of the results, the candidate collection ... , import statements, ordering and grouping specifications, result and result class, the range ... . The query namespace is modeled after methods in Java: setClass corresponds to the class definition
Forum
10

Class fields selection to store

In a class how do I define which are the fields to be stored? (using JDO API) It's using persistence-modifier="persistent" ? If I have a class with 40 fields and I only want to store one of the fields should I do the following? <class name="Car">
Forum
10

LifeCycle Event with Embeddable classes

for embeddable classes, not just for entities? My case looks as follows: @Entity public class Foo { @Id ... Timestamp(System.currentTimeMillis()); }} @Embeddable public class Bar { @Temporal(TemporalType ... class an Entity class though it does not make sense practically. I cannot setModifyDate manually