*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate mapping issue
 
Similar Threads
retrieve data from database
Session values of a Backing Bean in JSF
Java Script Drop-down option deletion but little bit different
Dynamic Drop down based on another value in the same form
Cascading non foreign key to Child Table