-->
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: How to delcare a column which is a composite key under hbm
PostPosted: Wed Dec 10, 2008 5:47 am 
Newbie

Joined: Wed Dec 03, 2008 8:05 am
Posts: 11
Hi,

I am facing a problem at runtime .

I have a column say Docu_ID from master table .

This Column I would like to declare another hbm.xml file.

but at runtime I am getting :

THIS_. Docu_Id is not identifier.






After investigating I found that DOcu_ID in master.hbm.xml is declared under masterPk .

ex:

<composite-id name="comp_id" class="com.drww.MasterPK">
<key-property name="docuId" column="DOCU_ID" type="java.lang.Long" length="8" />
.
.
.

</composite-id>


In my userPerm.hbm.xml I would like to call DocuId.

<many-to-one
name="doc"
class="com.drww.DocMaster"
update="false"
insert="false"
>

<column name="DOCU_Id" />
</many-to-one>

Can any one help me plzzzzzzzzzzzz?


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.