-->
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: Composite Primary key using Hibernate Annotation
PostPosted: Wed Jun 17, 2009 2:51 am 
Newbie

Joined: Tue Jun 16, 2009 8:14 am
Posts: 2
Hi.

I am using a table with a two fields in combination as primary key. one of these fields is primary key in another table. I am using hbm.xml file right now.
I have a java class corresponding to this table, a DAO class and an Interface. In the applicationContext.xml , I am giving reference for all these files.
I want to use Hibernate Annotations for this java class, so that I can get rid of hbm.xml files.
Can anyone tell me how can I do this and what all changes I have to made in applicationContext.xml

TIA


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.