Annotation Type DatastoreId

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String column
      Name of the column to use for datastore identity.
      javax.persistence.Column[] columns
      Column definition(s) to use for the datastore identity surrogate.
      javax.persistence.GenerationType generationType
      Strategy for generating values for the datastore identity.
      String generator
      Name of the generator to use (if using generationType of TABLE or SEQUENCE).
    • Element Detail

      • generationType

        javax.persistence.GenerationType generationType
        Strategy for generating values for the datastore identity.
        Returns:
        The generation type
        Default:
        javax.persistence.GenerationType.AUTO
      • generator

        String generator
        Name of the generator to use (if using generationType of TABLE or SEQUENCE).
        Returns:
        The generator
        Default:
        ""
      • column

        String column
        Name of the column to use for datastore identity.
        Returns:
        The column name
        Default:
        ""
      • columns

        javax.persistence.Column[] columns
        Column definition(s) to use for the datastore identity surrogate. Only processes a single column, but annotations cant have a default of null.
        Returns:
        The surrogate column definition(s)
        Default:
        {}