What cartridge does this happen on?

Jim Otte wrote:

I have the following problem:

1. I have a Model that I created in magicDraw-
exported to xmi and used to generate classes using
Andromda- everything works except for all the class
attributes that are int's.
2. I have a class Bank that has an int: accountNbr and
using the JavaMappings.xml included in my ant task:
     <mappingsSearchPath>
       <pathelement location="${andromda.mappings}"/>
     </mappingsSearchPath>

I get the following strange $typeName instead of 'int'
using this mapping in the JavaMappings.xml:
   <mapping>
       <from>datatype.int</from>
       <to>int</to>
   </mapping>


/**
* Constructor taking all properties
*/ public Bank(
$typeName bankNbr,
java.lang.String routingTransit,
java.lang.String sequenceNbrFormat,



Although when I use a double instead of an int it works fine:


<mapping> <from>datatype.double</from> <to>double</to> </mapping>


/**
* Constructor taking all properties
*/ public Bank(
double bankNbr,
java.lang.String routingTransit,
java.lang.String sequenceNbrFormat,



And if I do this mix it also seems to work:

   <mapping>
       <from>datatype.double</from>
       <to>int</to>
   </mapping>


/**
* Constructor taking all properties
*/ public Bank(
int bankNbr,
java.lang.String routingTransit,
java.lang.String sequenceNbrFormat,



Does anybody have an idea why only for my "int" types I do not get the mapping? Thanks, Jim






__________________________________ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs



------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user






------------------------------------------------------- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/Info/Sentarus/hamr30 _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to