• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: VelocityEOGenerator and unflattened part of to-many relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: VelocityEOGenerator and unflattened part of to-many relationship
      • From: Xavier Destombes <email@hidden>
References: 
 >VelocityEOGenerator and unflattened part of to-many relationship (From: Xavier Destombes <email@hidden>)

  • Prev by Date: Re: WebObjects training: who's offering it
  • Next by Date: WebObjects 5.4 examples
  • Previous by thread: VelocityEOGenerator and unflattened part of to-many relationship
  • Next by thread: Re: VelocityEOGenerator and unflattened part of to-many relationship
  • Index(es):
    • Date
    • Thread