Re: [morph-user] SimpleDelegatingTransformer re-re-visited
Brought to you by:
orangeherbert,
sgarlatm
|
From: Matt B. <gud...@gm...> - 2010-06-01 18:34:17
|
Mick, I don't recall where you were having trouble precisely. The
dead-simplest scenario here would be that all the properties of your
value object are Strings, in which case you should basically be
looking at populating a String-to-String map of property names e.g.
"callId":"callSessionId", and setting that as the "mapping" property
of a PropertyNameMatchingCopier, whose copy method you can call to do
the copy for you.
-Matt
On 6/1/10, Mick Knutson <mkn...@ba...> wrote:
> I still have an issue where I can not get a simple example working:
>
> Map converted -> Value Object
>
> I have a Map of Servlet POST parameters that are mapped to setters on a
> Value Object
>
> IE:
> valueObject.set*CallId*( map.get("*callSessionId*" ) ;
>
> I want to use Spring as well.
> Is there anyone that has working CODE that I can use to kick start this
> effort?
>
>
> ---
> Thank You…
>
> Mick Knutson, President
>
> BASE Logic, Inc.
> Enterprise Architecture, Design, Mentoring & Agile Consulting
> p. (866) BLiNC-411: (254-6241-1)
> f. (415) 685-4233
>
> Website: http://www.baselogic.com
> Blog: http://www.baselogic.com/blog/
> Linked IN: http://linkedin.com/in/mickknutson
> Twitter: http://twitter.com/mickknutson
> Vacation Rental: http://tahoe.baselogic.com
> ---
>
|