Annotation Type GeneratedValue


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface GeneratedValue
    Indicates a value being generated by the database system.
    Author:
    Guillaume Le Cousin
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String sequence
      For SEQUENCE strategy, specifies the name of the sequence to use.
      GeneratedValue.Strategy strategy
      Strategy to generate the value.
    • Element Detail

      • strategy

        GeneratedValue.Strategy strategy
        Strategy to generate the value.
        Default:
        net.lecousin.reactive.data.relational.annotations.GeneratedValue.Strategy.AUTO_INCREMENT
      • sequence

        String sequence
        For SEQUENCE strategy, specifies the name of the sequence to use.
        Default:
        ""