*
The moose likes Object Relational Mapping and the fly likes Hibernate mapping issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate mapping issue" Watch "Hibernate mapping issue" New topic
Author

Hibernate mapping issue

shikhaj jainy
Greenhorn

Joined: Oct 21, 2010
Posts: 10
Hi all,

I am using spring hibernate annotation in my project.
I have come to one specific requirement for mapping.

on UI I have one drop down box, I have to choose one String value from screen but have to look up another table for that string and retrieve look up code for that string and finally need to save that integer look up code in main table instead of string.


So it looks like

Choose String value form drop down box(UI)--------------> ( map it to) look up code that is in another table and save that look up code in main table.


I do not have any clue how to do that?
Any help will be appreciated.

Thank You.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hibernate mapping issue