About class

manual

Index Definition

Describes how to define indexes in JPA entity classes and explains how indexes are used in JPQL queries.... JPA annotation Specifies that the class is an entity. See JavaDoc Reference Page... public class EntityWithSimpleIndex { @Index ... JPA annotation Specifies that the class is an entity. See JavaDoc Reference Page... @Index ...

 
manual

Auto Generated Values

Explains the different strategies for generating auto values (mainly for primary key fields) in JPA.... JPA annotation Specifies that the class is an entity. See JavaDoc Reference Page... public class EntityWithAutoId1 { @Id javax.persistence.Id ...

 
release

2.7.2

... Improved error message on attempt to enhance a class in a jar file in place . Fixed a ClassCastException in ... a new index definition to a new defined embeddable class. Fixed a possible collision of using multiple servers with ...

 
api-jpa

javax.persistence.IdClass

Specifies a composite primary key class that is mapped to multiple fields or properties of the entity.(Annotation of JPA)

 
forum_thread

EmbeddedId with Generated field value

@Entity public class A { @EmbeddedId private Id id; } @Embeddable public class Id { @Generated private long id; private String zone; } How can I get the field Id.id auto-incremented?   ... Entity @ IdClass ( CompositePK. class ) public class A { @ Id private long uid ; @ ...

 
release

2.7.3

... Improved error message on attempt to enhance a class in a jar file in place . Fixed a ClassCastException in ... a new index definition to a new defined embeddable class. Fixed a possible collision of using multiple servers with ...

 
api-jdo

getInstance(cls)

An instance bound to a bundle.(Static Method of javax.jdo.spi.I18NHelper)

 
forum_thread

Changing existing objects from Entity to Embedded

Hi, I realised that I have a mistake (from application logic point of view) in one of my JDO metadata files: ... name = "my.example.package" >   <class name = "InnerSettings" > <field name = ... = "true" /> </field > </class >   <class name = "BasicSettings" > ...

 
release

2.7.3_01

... Improved error message on attempt to enhance a class in a jar file in place . Fixed a ClassCastException in ... a new index definition to a new defined embeddable class. Fixed a possible collision of using multiple servers with ...

 
manual

Storing JPA Entity Objects

Explains how to use JPA to store (persist) entity objects in the database.... code stores an instance of the Employee entity class in the database: Employee employee = new Employee ( ... if the argument is not an instance of an entity class. Only instances of entity classes can be stored in the database ...