Meaningless Drivel is fun!*
The moose likes Object Relational Mapping and the fly likes [Hibernate] How to model/map lookup tables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "[Hibernate] How to model/map lookup tables" Watch "[Hibernate] How to model/map lookup tables" New topic

[Hibernate] How to model/map lookup tables

Junilu Lacar

Joined: Feb 26, 2001
Posts: 4446

I've found precious little out there about how to model and map lookup tables in Hibernate (see

Simple examples:

stateCode (FK)

State (lookup for StateNames)
stateCode (PK)


itemCode (FK)

itemCode (PK)

Any and all tips appreciated. TIA!

Junilu - [How to Ask Questions] [How to Answer Questions]
I agree. Here's the link:
subject: [Hibernate] How to model/map lookup tables
Similar Threads
Topic: selecting Tiles or SiteMesh for an Struts web application application?(advice
Is Struts still the way to go?
Best Framework for Tabbed Dialogs
Hibernate vs IBATIS
Recommendations for a laptop?