001package io.ebean.annotation;
002
003import java.lang.annotation.ElementType;
004import java.lang.annotation.Retention;
005import java.lang.annotation.RetentionPolicy;
006import java.lang.annotation.Target;
007
008/**
009 * Specify the name of the DB that the entity should use.
010 * <p>
011 * This should only used on beans that don't use the default database.
012 * </p>
013 * <p>
014 * This annotation is used as part of query bean generation such that
015 * the query beans are generated to use the named (non-default) database.
016 * </p>
017 * <p>
018 * This annotation can be put on entity beans or MappedSuperclass beans.
019 * </p>
020 */
021@Retention(RetentionPolicy.RUNTIME)
022@Target(ElementType.TYPE)
023public @interface DbName {
024
025  /**
026   * The name of the database.
027   */
028  String value();
029}