Annotation Type Tsid


@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface Tsid
The @Tsid annotation can be added next to the entity identifier, therefore indicating that the identifier will be assigned a time-sorted identifier that's automatically generated. You can use the @Tsid annotation to annotate Long, String, or TSID entity identifiers.
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