Annotation Type DbName


@Retention(RUNTIME) @Target(TYPE) public @interface DbName
Specify the name of the DB that the entity should use.

This should only used on beans that don't use the default database.

This annotation is used as part of query bean generation such that the query beans are generated to use the named (non-default) database.

This annotation can be put on entity beans or MappedSuperclass beans.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the database.
  • Element Details

    • value

      String value
      The name of the database.