Trying something like this:
...
Marshaller marshaller = new Marshaller(mapping);
marshaller.marshall(new BigDecimal(100));
...

Result would be nice if it could be something like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<MyAliasNodeClass>100</MyAliasNodeClass>


Werner Guttmann wrote:
> 
> Hi,
> 
> are you actually trying to map a member of another class that happens to
> be of type BigDecimal to a custom alias, or are you really trying to
> (un)marshall just a java.lang.BigDecimal instance ?
> 
> Werner
> 
> Ole Christian wrote:
>> I'm trying desperately to make a mapping file that maps a
>> java.math.BigDecimal to a Node of my likings. But no matter what I do it
>> still just maps it to <big-decimal></big-decimal>
>> 
>> Example of mapping file:
>>      <class name="java.math.BigDecimal" auto-complete="true"
>> verify-constructable="false">
>>              <description>Aliasing my BigDecimal</description>
>>              <map-to xml="MyAliasNodeClass" />
>>      </class>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-map-to-on-BigDecimal%2C-String%2C-Integer-etc--tf3251239.html#a9041556
Sent from the Castor - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to