As I realized that there are not many instances where I need to concat the
values,so I guess best bet will be to handle this scenario in code itself
rather than mapping.
Thanks a lot for your comment Werner !
Werner Guttmann-6 wrote:
>
> Hi,
>
> you *might*be able to achieve this by implementing your own
> FieldHandler, but even in this case this might get fairly complicated.
>
> Let me know whether you'd like to look into this.
>
> Cheers
> Werner
>
> On 11.02.2010 22:00, Sam-1234 wrote:
>>
>> Hi-
>> I am trying to understand if i can concat the values in mapping so as to
>> produce a result .
>> i am having a class called Phone
>>
>> Class Phone{
>> String phoneNumber;
>> }
>>
>> My xml which i need to unmarshal looks like below
>> <Phone>
>> <countryCode>1</countryCode>
>> <AreaCode>312</AreaCode>
>> <DialNumber>5551212</DialNumber>
>> </Phone>
>>
>> is there any way in mapping so I can concat the values of
>> countrycode,areacode,dialnumber to 'phoneNumber' attribute?
>>
>> Thanks,
>> Sam
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
--
View this message in context:
http://old.nabble.com/concat-values-at-runtime-tp27554663p27575534.html
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email