To control the automatic generation, you can use some meta tags. Listed below are the currently supported tags...
Example: <meta attribute="AttributeName">Attribute Value</meta>
-
auto-DAO: (class): using the value of "false" will force the generator to not create any DAO's for
the related class even if the DAO generation is turned on.
-
alternate-key: (property/many-to-one) using the value of "true" will override the default .equals generated
functionality to take this property into account. The Equals snippet can be changed if the provided
functionality is not desired.
-
property-type: (property/many-to-one) the value of this field will be used to override the generated class
signature of the property. This is especially beneficial when working with UserType's because the type
attribute does not directly relate to the class signature.
-
implementation-class: (many-to-many/one-to-many) for generated Sets, an "addTo" method is created which
will construct a new instance if the property is null. This attribute can control the type of object that is created.
-
class-description: (class): inserted into the javadoc for classes
-
field-description: (property/many-to-one...): inserted into the javadoc for fields/properties
-
implements: (class): interface the class should implement
-
extends: (class): interface the class should extend
-
extends: (class): interface the class should extend