-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Can generated hbm files be used for key generation
PostPosted: Thu Dec 09, 2004 12:57 am 
Newbie

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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.