File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Hibernate] How to model/map lookup tables

 
Junilu Lacar
Bartender
Pie
Posts: 6532
21
Java Linux Mac Scala Spring
  • 0
  • 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!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic