@Documented @Inherited @Retention(value=RUNTIME) @Target(value=TYPE) @Analyze(value="org.tentackle.buildsupport.TableNameAnalyzeHandler") public @interface TableName
The tablename can be modified by the options:
<wurbletProperties>
<tablePrefix>pls</tablePrefix>
...
and in the code:
@TableName(value=/**/"md.ingotcategory"/**/, // @wurblet < Inject --string $tablename
mapSchema=/**/false/**/, // @wurblet < Inject $mapSchema
prefix=/**/""/**/) // @wurblet < Inject --string $tablePrefix
Means: all schemas get "pls" prepended (for example: td.message becomes plstd.message).
Non-schema tables from the TT-framework (technical tables) remain in the default schema.
This configuration is particularly useful for databases like Oracle that
emulate schemas via extra users. As a result, the main user "pls" remains unchanged,
transaction data goes to the "schema-user" plstd while the masterdata go to plsmd.
The model, however, remains unchanged! It's just a configuration in pom.xml.With mapSchema=true and prefix="" all tables go to the default schema, while masterdata tables start with md_ and transactiondata with td_.
public abstract String value
public abstract boolean mapSchema
public abstract String prefix
Tentackle - distributed, domain- and model-driven