Package org.hibernate.annotations
Annotation Interface NativeGenerator
@Target({METHOD,FIELD,TYPE,PACKAGE})
@Retention(RUNTIME)
@Incubating
public @interface NativeGenerator
Generator that picks a strategy based on the dialect.
- Since:
- 7.0
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionConfigures the sequence generation when the dialect reports GenerationType.SEQUENCE as its native generatorConfigures the table generation when the dialect reports GenerationType.TABLE as its native generator
-
Element Details
-
sequenceForm
SequenceGenerator sequenceFormConfigures the sequence generation when the dialect reports GenerationType.SEQUENCE as its native generator- Default:
- @jakarta.persistence.SequenceGenerator
-
tableForm
TableGenerator tableFormConfigures the table generation when the dialect reports GenerationType.TABLE as its native generator- Default:
- @jakarta.persistence.TableGenerator
-