Package com.exedio.cope
Annotation Type CopeSchemaName
-
@Target({TYPE,FIELD}) @Retention(RUNTIME) public @interface CopeSchemaName
Specifies database table/column names for types/fields different from the default names. This may be useful to- maintain schema compatibility to former versions of the application or to a legacy application.
- specify names in traditional uppercase plural.
- resolve name conflicts caused by trimming names to the maximum length allowed by the database.
- Wherever a
type id
is used to determine names in the database schema (tables, constraints, sequences}, a @CopeSchemaName at that type (@Target(TYPE)) overrides the type id. - Wherever a
feature name
is used to determine names in the database schema (tables, columns, constraints, sequences}, a @CopeSchemaName at that feature (@Target(FIELD)) overrides the feature name.
-
-
Element Detail
-
value
String value
-
-