Joined: Thu Dec 09, 2004 12:39 am Posts: 1
|
Hibernate version: 2.1.3
Name and version of the database you are using:Teradata 5.1
Requirement is to use similar xml file the way hbm.xml files are generated. These xml files are o be used to knowing the composite key combination and generating unique key sequences.
Can i reuse the hbm.xml files generated by xdoclet?
Is there any way i can generate subset of each hbm.xml file using xdoclet?
For example,
i just need to use this much portion from each hbm file
=============================================
- <hibernate-mapping default-cascade="none" default-access="property" auto-import="true">
- <class name="AdAnalysis" table="AD_ANALYSIS" dynamic-update="false" dynamic-insert="false" mutable="true" polymorphism="implicit" batch-size="1" select-before-update="false" optimistic-lock="version">
- <composite-id name="crmPrimaryKey" class="AdAnalysisPK" unsaved-value="none">
<key-property name="analysisId" type="java.lang.Integer" column="ANALYSIS_ID" length="22" />
<key-property name="analysisVersionId" type="java.lang.Integer" column="ANALYSIS_VERSION_ID" length="22" />
</composite-id>
</class>
</hibernate-mapping>
==============================================
Can i directly include hbm.xml file in my ejb.jar?
|
|