-->
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: Join two Table with hibernate Criteria and Annotations
PostPosted: Wed May 18, 2011 3:28 am 
Newbie

Joined: Wed May 18, 2011 3:25 am
Posts: 2
Hi

I need l little favor ,could anyone please help me or point for any article related to join ,ManytoMany/one to many with annotations

I want to join 2 tables in mysql with Hibernate Annotations and Criteria

I have 2 table
candidates jobs
candID candName jobID jobName
1 abc 1 job1
2 xyz 2 job2

like i need to create a query in Criteria in hibernate as select candName ,jobName from candidates as c ,jobs as j where c.candID = j.jobID..

what will be the criteria query for that and most importantly what will i write in my annotation class ( as i am using spring annotations) and do i need to write anything in my applicantioncontext.xml...

Thanks
I will be really great full if you can help me with this as i am struggling for last 3 days for it .
thanks


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.