Annotation Interface DatabaseType


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface DatabaseType
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Flattens hierarchical structure of object and makes parent fields exposed to PgTypeHelper.
    Define the name of the database type, that a class represents.
    boolean
    Annotated java class can have more @DatabaseField annotated fields than corresponding database type.
  • Element Details

    • name

      String name
      Define the name of the database type, that a class represents.
      Default:
      ""
    • inheritance

      boolean inheritance
      Flattens hierarchical structure of object and makes parent fields exposed to PgTypeHelper.
      Default:
      false
    • partial

      boolean partial
      Annotated java class can have more @DatabaseField annotated fields than corresponding database type.
      Default:
      false