jQuery in Action, 3rd edition
The moose likes Object Relational Mapping and the fly likes Join Table In Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Join Table In Hibernate" Watch "Join Table In Hibernate" New topic

Join Table In Hibernate

Prateek Jauhari

Joined: Mar 07, 2011
Posts: 26

Actually I have create a table "Paper" which a join of two tables.
PaperInfo and questionbank

This paper table has field which are PaperInfoId and QuestionId which are primary key of table PaperInfo and questionbank tables respectively.

I generate POJO and mapping files with the help of reverse engg. file in netbeans.
But no class and hbm file is generate Paper Table.

Now I am confused how to fetch and store data in paper tables as there is no class and mapping file generated for the table...

Is there any way to work with a join table...?

Please advice....!!!


Ramon Anger
Ranch Hand

Joined: Apr 19, 2011
Posts: 56

Hi Prateek,

would you please provide your sources. Without them it's hard to detect what's wrong.


Blackbelt on BlackBeltFactory.com.
Viswanathan Ramamoorthy

Joined: Nov 01, 2010
Posts: 10
Kindly give Clarified information about your issue along With Code.
I agree. Here's the link: http://aspose.com/file-tools
subject: Join Table In Hibernate
jQuery in Action, 3rd edition