Annotation Type Tsid


@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface Tsid
The @Tsid annotation can be added to entity identifiers or other fields, indicating that the value will be assigned a time-sorted TSID automatically.

On identifier fields, TsidGenerator is used for value generation. On non-identifier fields, TsidValueGenerator is used.

You can use the @Tsid annotation to annotate Long, String, or TSID fields, including entity identifiers and general columns.
Author:
Vlad Mihalcea
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends Supplier<io.hypersistence.tsid.TSID.Factory>>
    Specify the class that can provide the custom TSID.Factory.
  • Element Details

    • value

      Class<? extends Supplier<io.hypersistence.tsid.TSID.Factory>> value
      Specify the class that can provide the custom TSID.Factory. By default, the Tsid.FactorySupplier is used.
      Returns:
      the TSID.Factory supplier.
      Default:
      io.hypersistence.utils.hibernate.id.Tsid.FactorySupplier.class