-->
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: can you use both hibernate mappings and native sql in the pr
PostPosted: Wed Jan 10, 2007 12:28 pm 
Newbie

Joined: Fri Dec 15, 2006 5:49 pm
Posts: 16
can you use both hibernate mappings and native sql in the project at or not...


Top
 Profile  
 
 Post subject: how do make many to many relationship between three tables
PostPosted: Wed Jan 10, 2007 3:26 pm 
Newbie

Joined: Fri Dec 15, 2006 5:49 pm
Posts: 16
how do make many to many relationship between three tables and a link table in hibernate

select rf.name, rf.category, ap.name from ref_data rf, app
ap, roles r
where rf.id=rr.ref_id and ap.id=rr.ar_id
and ap.name='Manager' and rf.system='Task'
order by rf.name


i tried a manny to many from my role table to my other two but the mappings dont work


Top
 Profile  
 
 Post subject: Re: can you use both hibernate mappings and native sql in th
PostPosted: Wed Jan 10, 2007 4:33 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
SuperMan2000 wrote:
can you use both hibernate mappings and native sql in the project at or not...


yes

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


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.