File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Object Relational Mapping
Join Table In Hibernate
Joined: Mar 07, 2011
Apr 21, 2011 04:22:55
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...?
Joined: Apr 19, 2011
Apr 23, 2011 14:53:26
would you please provide your sources. Without them it's hard to detect what's wrong.
Blackbelt on BlackBeltFactory.com
Joined: Nov 01, 2010
Apr 27, 2011 03:25:45
Kindly give Clarified information about your issue along With Code.
I agree. Here's the link:
subject: Join Table In Hibernate
Problem with SQL query in Castor JDO
One Mapping for two tables
So much on the Left Joins in Hibernate
hibernate reverse engineering
Is Nested Join possible, mapping a POJO to multiple tables.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014