• 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
Using inner classes or enums as attribute types with Velocity templates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using inner classes or enums as attribute types with Velocity templates


  • Subject: Using inner classes or enums as attribute types with Velocity templates
  • From: Paul Hoadley <email@hidden>
  • Date: Thu, 10 May 2012 10:38:09 +0930

Hello,

I'm using an enum as an attribute type, and for neatness I've just moved that enum into the EO's class.  It all works fine, but obviously I need to specify the type in the model as some.package.Foo$Bar, and then this isn't handled correctly by the stock Velocity templates.  I thought I could live with it, but it turns out EO generation happens a lot more frequently than I realised, and now it's annoying me!

Mark Wardle wrote in February 2011:

NB: when using $ to refer to an enum defined within a class, you will need to update your WOLips templates. 

I think there's a page on the wiki but I have limited connection at the moment.

I couldn't find a reference to the issue on the Wiki, though I may have missed it.  Does anyone have any modified Wonder templates that would handle this, or can any Velocity experts point me in the right direction to get Foo$Bar translated to Foo.Bar?


-- 
Paul Hoadley
http://logicsquad.net/



 _______________________________________________
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

  • Prev by Date: Re: Jasper Report subreport on deployment machine
  • Next by Date: Wowodc tickets?
  • Previous by thread: Fw: Jasper Report subreport on deployment machine
  • Next by thread: Re: Using inner classes or enums as attribute types with Velocity templates
  • Index(es):
    • Date
    • Thread