This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mapping Query

 
Kalpesh K Rawal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone send me the query for Many-One,One-Many and Many-Many Mapping.I am using Hibernate-3.0.If i can join 2 tables through a single class,then how can achive it through Hibernate-3.0?Plz reply me ASAP....
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can anyone send me the query for Many-One,One-Many and Many-Many Mapping.

Not sure what you are after here. The HQL doesn't change depending on the the association.


If i can join 2 tables through a single class,then how can achive it through Hibernate-3.0

Yesy. Read the documentation for the <join /> element. That is how you map more than one table to a single class.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!