org.simpleds.annotations
Annotation Type Id


@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
@Documented
public @interface Id

Marks the primary key attribute.


Optional Element Summary
 boolean generated
          Indicates if missing primary keys should be generated automatically.
 java.lang.Class<?>[] parent
          The parent class.
 

generated

public abstract boolean generated
Indicates if missing primary keys should be generated automatically. Default is true.

Default:
true

parent

public abstract java.lang.Class<?>[] parent
The parent class. Indicates the possible parent types when generating key values for this class. Leave empty for root entities.

Default:
{}