Annotation Interface 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
    Name used in the database.
  • Element Details

    • value

      String value
      Name used in the database.