You can create a new datatype and use the JavaMappings.xml file to map this
datatype to the java type. For example, in one of my project's I needed a
type in my generated code to return a java.security.Principal.  Therefore I
created a package named "datatype.ext" in my model (for datatype
extensions).  I then added a User to this package and in my JavaMappings.xml
file I mapped this datatype.ext.User to java.security.Principal:

<mappings name="Java">
    <mapping>
        <from>datatype.ext.User</from>
        <to>java.security.Principal</to>
    </mapping>
    ...
</mappings>

And then point to this mapping file for the languageMappingsUri in your
mda/project.xml:

<languageMapp
ingsUri>file:${basedir}/conf/mappings/JavaMappings.xml</languageMappingsUri>

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 5:30 AM
To: [email protected]
Subject: [Andromda-user] use existing java classes for retval in ejb
services



Hi,

My question is probably easy to respond, but because I'm looking for that
from
few days..

How can I use existing java classes, not directly related to my project, for
parameters and/or return values from my ejb services in the hibernate
cartridge?
I can't find a way to create a <<Service>> in magicdraw that can return me a
java.security.FooBar object. I only can return object that are defined in my
UML diagram. How can I do that?

Many thanks in advance!



-------------------------------------------------------
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_ide95&alloc_id396&op=ick
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user




-------------------------------------------------------
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_ide95&alloc_id396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to