File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Clarification in Relationships 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 "Clarification in Relationships in hibernate" Watch "Clarification in Relationships in hibernate" New topic
Author

Clarification in Relationships in hibernate

vipul bondugula
Ranch Hand

Joined: Oct 14, 2010
Posts: 218
Hi ,

I am a newbie to hibernate. I am having M_COM_ENQRY_FORM,M_COM_GNDR,M_COM_ENQRY_QLFCTN tables...


M_COM_ENQRY_FORM (Columns:-ENQFORM_GNDR_N_ID,ENQFORM_QLFENQRY_N_ID) refers to both M_COM_GNDR (GNDR_N_ID),M_COM_ENQRY_QLFCTN(QLFENQRY_N_ID)

i won't insert in the master tables gender and qualification. Already data is present.

So, when i am inserting and when using join queries i refer to data in master tables. i mean parent referencing


what is the procedure of writing hibernate mapping files. can anyone of you please provide me information ...

Thanks & Regards,
Vipul Kumar.


Thanks
Vipul Kumar
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Clarification in Relationships in hibernate
 
Similar Threads
Hibernate : Association
OneToOne shared PK isn't setting key in related table during insertion
caching master tables static data
Update in master table Child Table problem
Should a project has only one Servlet?