-->
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.  [ 3 posts ] 
Author Message
 Post subject: how to map tables with out primary key in hibernate
PostPosted: Thu Jul 22, 2010 1:12 pm 
Newbie

Joined: Thu Mar 05, 2009 2:50 am
Posts: 14
how to map tables with out primary key in hibernate. Those tables with out any primary key should me mapped what should be done for that

_________________
Thanks and Regards


Top
 Profile  
 
 Post subject: Re: how to map tables with out primary key in hibernate
PostPosted: Thu Jul 22, 2010 2:18 pm 
Newbie

Joined: Mon Jul 19, 2010 10:37 am
Posts: 5
You can join the other table by providing the referencecolumnname of the other table where you have declare the join annotation.
Exa:-

@Join(columne="userfirstname_fk", referencedColumnName="firstName")


Top
 Profile  
 
 Post subject: Re: how to map tables with out primary key in hibernate
PostPosted: Mon Jul 26, 2010 3:09 am 
Newbie

Joined: Tue Jul 06, 2010 11:37 am
Posts: 6
Thats ok using annotations.without annotations how you do it??????


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

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.