This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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: 6295

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]
Have you checked out Aspose?
subject: [Hibernate] How to model/map lookup tables
It's not a secret anymore!