Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Hibernate] How to model/map lookup tables

 
Junilu Lacar
Bartender
Pie
Posts: 8793
81
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've found precious little out there about how to model and map lookup tables in Hibernate (see http://raibledesigns.com/page/rd?anchor=dynamic_queries_with_hibernate).

Simple examples:

Address
-------
stateCode (FK)


State (lookup for StateNames)
-----
stateCode (PK)
stateName

----
Another:


LineItem
---------
itemCode (FK)


Item
----
itemCode (PK)
itemDesc


Any and all tips appreciated. TIA!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic