Thanks Thomas - that was going to be my workaround, but we have a
fairly rich domain model and use Joda types extensively.  Providing
String-based wrapper properties on each entity class is going to be a
bit of a pain.  This is why I'd been looking for a more centralized
approach.

I'm not too familiar with AutoBean, but I would think something could
be done here.  Are you guys accepting patches :)?

On Sep 15, 6:31 am, Thomas Broyer <t.bro...@gmail.com> wrote:
> I don't think ServiceLayerDecorator would work (interface won't validate
> against domain object; you could use @SkipInterfaceValidation but that
> actually wouldn't help, at least with GWT 2.4.0: see my comments 
> onhttp://code.google.com/p/google-web-toolkit/source/detail?r=10542).
>
> How about adding getters and setters to your domain object that do the
> conversion between JodaTime types and strings or numbers?
>
> I.e.
> public final String getDurationString() {
>    return getDuration().toString();}
>
> public final void setDurationString(String s) {
>    setDuration(Duration.parse(s));
>
> }
>
> Not ideal but assured to work.
>
> Ideally of course, ValueCodex would be pluggable. If you have an idea how to
> refactor it so anyone could plug his "codecs", that'd be awesome ;-)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to