Regular |
|
Joined: Wed Dec 17, 2003 1:58 pm Posts: 102
|
Hi I am new to Hibernate (shock eh?) anyway I have been reading all about the parent-child relationships etc, but I can't quite figure out how to implement what I want.
Example:
Customer Class:
(customer information)
public SalesRegion region;
SalesRegion Class:
(information about that salesregion)
What I'd like is my customer class to have a link to the salesregion. However I don't really need the salesregion to hold a link to all the customers associated with it. How would I set this up? Would it be a one-to-one in customer class, and no link at all in the salesregion class?
thanks in advance!
-David
|
|