Re: VelocityEOGenerator and unflattened part of to-many relationship
Re: VelocityEOGenerator and unflattened part of to-many relationship
- Subject: Re: VelocityEOGenerator and unflattened part of to-many relationship
- From: Mike Schrag <email@hidden>
- Date: Sat, 24 Nov 2007 09:15:17 -0500
I'm still trying to find out why my generated classes using
VelocityEOGenerator aren't correct.
There's only one error left.
I'm using WO5.3 with latest WOLips and Mike's Velocity templates.
I have a Customer entity and a MailingCategory entity joined in a
toMany relationship.
In the flattened relationship _MailingCategoryCustomer.java,
everything is correct.
but there is one method in both _Customer.java and
_MailingCategory.java which has an error:
the template generates the following method:
I've committed a fix for this ... I don't use flattened properties,
but it seems a LITTLE bit weird that you have a flattened relationship
through the to-many but this bug implies that you also have the non-
flattened relationship to the join table as a class relationship (but
not the to-one relationships in the join table itself). It seems like
if you have the flattened relationship through the join table that you
don't probably want the to-many relationship TO the join table to be a
class properties. Regardless I fixed the templates to make this work
properly (or rather, at least not generate invalid code) as well ...
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden