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
  • Element Details

    • sequenceForm

      SequenceGenerator sequenceForm
      Configures the sequence generation when the dialect reports GenerationType.SEQUENCE as its native generator
      Default:
      @jakarta.persistence.SequenceGenerator
    • tableForm

      TableGenerator tableForm
      Configures the table generation when the dialect reports GenerationType.TABLE as its native generator
      Default:
      @jakarta.persistence.TableGenerator