• 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic