About identity

1-10 of 200Refresh
Manual
88

Auto Generated Values

and are never recycled, as explained in the previous section. The Identity Strategy The IDENTITY strategy ... @GeneratedValue(strategy=GenerationType.IDENTITY) long id; : } The IDENTITY strategy ... identity generator is managed per type hierarchy, so generated values are unique only per type
JDO Doc
68

javax.jdo.identity.ByteIdentity

javax.jdo.identity Class ByteIdentity java.lang.Object javax.jdo.identity.SingleFieldIdentity javax.jdo.identity.ByteIdentity Implemented Interfaces: Externalizable, Serializable, Comparable This class is for identity with a single byte field. Since: JDO 1.0 ByteIdentity() Constructor
JDO Doc
68

javax.jdo.identity.CharIdentity

javax.jdo.identity Class CharIdentity java.lang.Object javax.jdo.identity.SingleFieldIdentity javax.jdo.identity.CharIdentity Implemented Interfaces: Externalizable, Serializable, Comparable This class is for identity with a single character field. Since: JDO 1.0 CharIdentity
JDO Doc
68

javax.jdo.identity.IntIdentity

javax.jdo.identity Class IntIdentity java.lang.Object javax.jdo.identity.SingleFieldIdentity javax.jdo.identity.IntIdentity Implemented Interfaces: Externalizable, Serializable, Comparable This class is for identity with a single int field. Since: JDO 1.0 IntIdentity() Constructor
JDO Doc
68

javax.jdo.identity.LongIdentity

javax.jdo.identity Class LongIdentity java.lang.Object javax.jdo.identity.SingleFieldIdentity javax.jdo.identity.LongIdentity Implemented Interfaces: Externalizable, Serializable, Comparable This class is for identity with a single long field. Since: JDO 1.0 LongIdentity() Constructor
JDO Doc
68

javax.jdo.identity.ObjectIdentity

javax.jdo.identity Class ObjectIdentity java.lang.Object javax.jdo.identity.SingleFieldIdentity javax.jdo.identity.ObjectIdentity Implemented Interfaces: Externalizable, Serializable, Comparable This class is for identity with a single Object type field. Since: JDO 1.0 ObjectIdentity
JDO Doc
68

javax.jdo.identity.ShortIdentity

javax.jdo.identity Class ShortIdentity java.lang.Object javax.jdo.identity.SingleFieldIdentity javax.jdo.identity.ShortIdentity Implemented Interfaces: Externalizable, Serializable, Comparable This class is for identity with a single short field. Since: JDO 1.0 ShortIdentity
JDO Doc
68

javax.jdo.identity.StringIdentity

javax.jdo.identity Class StringIdentity java.lang.Object javax.jdo.identity.SingleFieldIdentity javax.jdo.identity.StringIdentity Implemented Interfaces: Externalizable, Serializable, Comparable This class is for identity with a single String field. Since: JDO 1.0 StringIdentity
JDO Doc
67

javax.jdo.identity.SingleFieldIdentity

javax.jdo.identity Class SingleFieldIdentity java.lang.Object javax.jdo.identity ... is the abstract base class for all single field identity classes. A common case of application identity uses exactly one persistent field in the class to represent identity. In this case, the application
JPA Doc
64

GenerationType.IDENTITY

Enum Constant javax.persistence.GenerationType IDENTITY Indicates that the persistence provider must assign primary keys for the entity using a database identity column. Since: JPA 1.0