A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Databases
»
Object Relational Mapping
Author
[Hibernate] How to model/map lookup tables
Junilu Lacar
Bartender
Joined: Feb 26, 2001
Posts: 4115
2
I like...
posted
Aug 03, 2005 11:08:00
0
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!
Junilu - [
How to Ask Questions
] [
How to Answer Questions
] [
MiH
]
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: [Hibernate] How to model/map lookup tables
Similar Threads
Is Struts still the way to go?
Recommendations for a laptop?
Best Framework for Tabbed Dialogs
Topic: selecting Tiles or SiteMesh for an Struts web application application?(advice
Hibernate vs IBATIS
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter