Annotation Interface CreationTime


@Target({FIELD,TYPE}) @Retention(RUNTIME) public @interface CreationTime
User: Stephan Bösebeck Date: 29.05.12 Time: 15:30

define the field to store the creation timestamp. Only works ifthis annotation is also added to the type

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    set it to true to make self-created ids possible
    define the format for creation time when storing into strings
  • Element Details

    • checkForNew

      boolean checkForNew
      set it to true to make self-created ids possible
      Returns:
      Default:
      false
    • dateFormat

      String dateFormat
      define the format for creation time when storing into strings
      Returns:
      Default:
      "yyyy-MM-dd hh:mm:ss"