Annotation Interface ObjectIdGenerator


@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface ObjectIdGenerator
Specifies that the value of an annotated persistent attribute, including an entity identifier, is generated using ObjectIdGenerator before inserting. If the value is explicitly assigned, then the assigned value is used instead of generating a different one.