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.