• Post Reply Bookmark Topic Watch Topic
  • New Topic

[Hibernate] How to model/map lookup tables  RSS feed

 
Junilu Lacar
Sheriff
Posts: 10892
158
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac 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
Boost this thread!