Annotation Type Type


  • @Retention(CLASS)
    @Target(FIELD)
    public @interface Type
    Use on a property to override how its value is stored and interpreted in the database.

    For example to change a long to be interpreted as nanoseconds instead of milliseconds:

     @Type(DatabaseType.DateNano)
     public long timeInNanos;
     
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      DatabaseType value