Using inner classes or enums as attribute types with Velocity templates
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?
|
_______________________________________________
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