Annotation Type NameInDb


  • @Retention(CLASS)
    @Target({FIELD,TYPE})
    public @interface NameInDb
    Allows to specify a simple name mapping for entities and properties. If names have diverged on the Java side (vs. the DB), you can specify the name used in the database here. This allows simple renames in Java. For more advanced renames you should consider @Uid instead.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value
      Name used in the database.
    • Element Detail

      • value

        java.lang.String value
        Name used in the database.