Annotation Interface IDMaker


@Retention(RUNTIME) @Target(FIELD) public @interface IDMaker
Annotation for fields that should have an ID generated before persisting.
Since:
2024. 5. 31.
Author:
yongjunhong
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The length of the random part of the ID.
    The type of characters to use for the random part of the ID.
  • Element Details

    • length

      int length
      The length of the random part of the ID.
      Returns:
      the length of the random part of the ID
      Default:
      7
    • type

      The type of characters to use for the random part of the ID.
      Returns:
      the type of characters to use for the random part of the ID
      Default:
      EN