-->
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: ManyToOne Relation between two entities
PostPosted: Tue Sep 20, 2011 5:02 am 
Newbie

Joined: Wed Aug 10, 2011 11:24 pm
Posts: 14
Hi All,
I have two tables having no primary key and foreignkey relation, but these two tables have two common columns(these are not part of either primary key or foreign key). I want to make many to one relation between these two entities. please advise me asap. Thanks in advance.

_________________
With Best Regards
SreenivaS
Save trees Save life


Top
 Profile  
 
 Post subject: Re: ManyToOne Relation between two entities
PostPosted: Tue Sep 20, 2011 5:08 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

this is the wrong forum for this question. You need to ask this on the Hibernate User forum and while doing so you should be much more specific and give concrete details.

--Hardy


Top
 Profile  
 
 Post subject: Re: ManyToOne Relation between two entities
PostPosted: Tue Sep 20, 2011 5:21 am 
Newbie

Joined: Wed Aug 10, 2011 11:24 pm
Posts: 14
table abc ---> eid(primarykey), ecode, etype,...
table xyz ---> mid(primarykey), mcode, mtype, mbala...

In above tables the columns ecode, etype and mcode, mtype having same data for both the tables respectively, apart this there is no relation defined in DB. Also I have two entities for above two tables, now i want to perform annotation based mapping between those two entities in hibernate inorder to get mbala column data.

_________________
With Best Regards
SreenivaS
Save trees Save life


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.