GenieLamp patterns implement additional functionality to your model. You don't need define supplementary entities, attributes etc.
You should define pattern in your project file. Generic pattern definition contains its name and parameters:
<Pattern name="SomePattern">
<Param name="Param1" value="Value1" />
...
</Pattern>
By default, every pattern is applying to all model entities. You can customize this rule by excluding some of them. Use <exclude> element in pattern definition:</exclude>
<Pattern name="Registry">
<Param name="Schema" value="Warehouse" />
<Exclude entity="Product" />
<Exclude entity="StoreType" />
</Pattern>
Every pattern has following attributes
Attribute | Required? | Description |
---|---|---|
name | yes | Name of pattern. Apart from system names like 'Registry' you may define your own patterns and implement them in genies |
onPersistentLayer | no | Default is 'false'. If 'true', indicate that pattern should be implemented on persistent (DBMS) layer. This option is for performance goal only. Important note. Activation of this option break portability within some DBMS because of unsupported fetaures. I.e. triggers are not supported by SQL Server Compact or SQLite so you cannot use it with this option. See error messages produced by genies. |