This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate mapping issue" Watch "Hibernate mapping issue" New topic

Hibernate mapping issue

shikhaj jainy

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:
subject: Hibernate mapping issue
jQuery in Action, 3rd edition