Annotation Type Id


  • @Retention(SOURCE)
    @Target(FIELD)
    public @interface Id
    Marks field is the primary key of the entity's table
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean autoincrement
      Specifies that id should be auto-incremented (works only for Long/long fields) Autoincrement on SQLite introduces additional resources usage and usually can be avoided
    • Element Detail

      • autoincrement

        boolean autoincrement
        Specifies that id should be auto-incremented (works only for Long/long fields) Autoincrement on SQLite introduces additional resources usage and usually can be avoided
        See Also:
        SQLite documentation
        Default:
        false