@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Table
Used to specify a table name for an entity explicitly without resorting to manual mappings in the table name converter. This annotation could be used for entities who's corresponding table names either don't follow the convention, or which must correspond to some pre-existing table in the database.
@Table("t_person") public interface Person extends Entity { ... }
In the above example, the Person
entity will correspond to
the "t_person" table, rather than "person" or "people" (depending on the
table name converter).
public abstract String value
Copyright © 2007–2019 Atlassian. All rights reserved.