org.datanucleus.jpa.annotations
Annotation Type DatastoreIdentity


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface DatastoreIdentity

Extension annotation allowing for use of datastore-identity with JPA.


Optional Element Summary
 java.lang.String column
          Name of the column to use for datastore identity.
 javax.persistence.GenerationType generationType
          Strategy for generating values for the datastore identity.
 java.lang.String generator
          Name of the generator to use (if using generationType of TABLE or SEQUENCE).
 

generationType

public abstract javax.persistence.GenerationType generationType
Strategy for generating values for the datastore identity.

Default:
javax.persistence.GenerationType.AUTO

generator

public abstract java.lang.String generator
Name of the generator to use (if using generationType of TABLE or SEQUENCE).

Default:
""

column

public abstract java.lang.String column
Name of the column to use for datastore identity.

Default:
""


Copyright © 2011. All Rights Reserved.