This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion 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
Viswanathan Ramamoorthy

Joined: Nov 01, 2010
Posts: 10
Kindly give Clarified information about your issue along With Code.
I agree. Here's the link:
subject: Join Table In Hibernate
It's not a secret anymore!