I'm have the following mapping file that I'm using with the Hbm2JavaTask
to auto-generate the mapping classes.
The problem I have is that the component class is auto-generated too..
Code:
com.constants.DecisionType
Is there some way I can tell the code generator not to generate this class?
I am currently using hibernate2
Code:
<class name="Decision" table="DECISION" batch-size="100">
<id name="_id" access="field" type="int" column="ID">
<generator class="uuid.hex" />
</id>
<timestamp name="_lastSavedTimestamp" access="field" column="LAST_SAVED_TIMESTAMP" />
<component name="decisionType" class="com.constants.DecisionType">
<property name="_type" access="field" column="DECISION_TYPE" />
</component>
<many-to-one name="snapshot" class="com.model.persisted.v3.Snapshot"
column="SNAPSHOT_ID" not-null="true" />
</class>