Turns the table generation for a class or link table on or off (boolean extension). It can be set at the class level and its default value is set to false. The db-do-not-create-table extension is useful when some of the classes in your model map to legacy database tables, which need not be created and need to be left out of the generated schema.
|
Copy Code |
<class name="Item">
<extension key="db-do-not-create-table" value="true" />
</class>
|
Here is an example of this extension used on a link table for a Collection:
|
Copy Code |
<field name="lines">
<collection element-type="OrderLine">
<extension key="db-link-table">
<extension key="db-do-not-create-table" value="true" />
</extension>
</collection>
</field>
|