Annotationsschnittstelle 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

  • Optionale Elemente - Übersicht

    Optionale Elemente
    Modifikator und Typ
    Optionales Element
    Beschreibung
    boolean
    set it to true to make self-created ids possible
    define the format for creation time when storing into strings
  • Elementdetails

    • checkForNew

      boolean checkForNew
      set it to true to make self-created ids possible
      Gibt zurück:
      Standard:
      false
    • dateFormat

      String dateFormat
      define the format for creation time when storing into strings
      Gibt zurück:
      Standard:
      "yyyy-MM-dd hh:mm:ss"