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.
    In particular it does the following:
    • 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.
    Apart from affecting names in the database schema, this annotation does nothing else. In particular it does not affect the type id or the feature name itself.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value