aspose file tools*
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
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Join Table In Hibernate" Watch "Join Table In Hibernate" New topic
Author

Join Table In Hibernate

Prateek Jauhari
Greenhorn

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....!!!

Thanks

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.

Regards,
Ramon


Blackbelt on BlackBeltFactory.com.
Viswanathan Ramamoorthy
Greenhorn

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