Annotation Type DbIndex


  • @Retention(RUNTIME)
    public @interface DbIndex
    Use this to add a list of indexes to a column. Use comma as separator. The simplest way to name the indexes is by numbers. If the index starts with an 'u' the index will be defined as an unique index. Do not name the index to long most database engines have restrictions about the length of an index name.
    Author:
    mikehummel
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static String UNIQUE  
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String[] value  
    • Field Detail

      • UNIQUE

        static final String UNIQUE
      • type

        DbIndex.TYPE type
        Default:
        de.mhus.lib.annotations.adb.DbIndex.TYPE.AUTO
      • fields

        String[] fields
        Default:
        {}