net.java.ao.schema
Annotation Type Table


@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).

Author:
Daniel Spiewak

Required Element Summary
 java.lang.String value
          Contains the actual name name which is being specified.
 

Element Detail

value

public abstract java.lang.String value
Contains the actual name name which is being specified. This table name will be used without modification, and thus must be a valid identifier in the underlying database.



Copyright © 2007-2014. All Rights Reserved.