Nope, facility cant host more than one club. I want to make the relationship
between club and facility as one-to-many.

Now my concern is how does FacilityFee fit into the relationship between
club and facility. 

One facility should have many facilityFee structure, if that's the case,
should not it be a relationship of one-to-many between facility and
facilityFee ? how do the club, facility and facilityFee POJOs look like then
?



DNewfield wrote:
> 
> Fan wrote:
>> I am doing a club reservation system using Appfuse 2.0m5 struts basic.
>> 
>> I have two POJO:
>> 
>> 1) Club
>> 2) Facility
>> 
>> the relationship of them is, one Club can have many Facilities,
>> apparently
>> it's one-to-many relationship
> 
> Can a Facility host more than one Club?  In that case you've got a 
> many-to-many relationship.
> 
> If there's added information related to that association (like whether 
> that club has a key to that facility, or has restrictions about when 
> they can use it, or a fee structure specific to that club), then instead 
> may want to have another object containing this relationship-specific 
> information and which has many-to-one relationships with both Club and 
> Facility.
> 
> -Dale
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Advice-for-Hibernate-mapping-tf4257160s2369.html#a12127829
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to