Annotation Type Type

  • @Retention(CLASS)
    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:

     public long timeInNanos;
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      DatabaseType value