my dog learned polymorphism
The moose likes Object Relational Mapping and the fly likes Hibernate mapping issue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Hibernate mapping issue
 
Similar Threads
retrieve data from database
Java Script Drop-down option deletion but little bit different
Cascading non foreign key to Child Table
Session values of a Backing Bean in JSF
Dynamic Drop down based on another value in the same form