Inserting special types

20 views
Skip to first unread message

Cristian Vrabie

unread,
Aug 3, 2012, 6:38:20 AM8/3/12
to orbr...@googlegroups.com
What is the recommended way to handle the insert of fields with non-standard fields? 
Until now I used a function on the object to convert it to an acceptable type. But that might not always be available.
For example for enums i've been using :enumObj.id in the value part of the insert statement. For Joda DateTime i've used :datetime.toDate
I guess we could also use velocity macros to process the value a bit.

Nils Kilden-Pedersen

unread,
Aug 3, 2012, 8:38:45 AM8/3/12
to orbr...@googlegroups.com
You use a ParmConverter when configuring a Token. There's already a bunch defined in the conv package.

Cristian Vrabie

unread,
Aug 3, 2012, 8:52:59 AM8/3/12
to orbr...@googlegroups.com
Nice. This should be in the wiki. 
There is also some other good documentation in the docs folder if you pull the sources, but I think most people miss that. It should be on the wiki as well. 
Lastly, can you please stop quoting my real email in the replies? :) No one tells you that you're screwd if you login to Google groups with your Google account :)

Cristian


On Friday, 3 August 2012 13:38:45 UTC+1, Nils Kilden-Pedersen wrote:
You use a ParmConverter when configuring a Token. There's already a bunch defined in the conv package.

On Fri, Aug 3, 2012 at 5:38 AM, Cristian Vrabie :
Reply all
Reply to author
Forward
0 new messages