HI Michael,

[EMAIL PROTECTED] wrote:

Hi Martin (or MArtin?),

another guy who likes to live on the bleeding edge! :-)

Whats life without risk? ;)


Please see my comments below...

I got some time these days. So I am playing around a little bit with AndroMDA3 and the MMDs. But two questions poped up until now:
1. I wrote my own MMD. Its based on the EJBEntityDecorator. I added a method called getTOInterfaceName(). In my template I try to use it with
"$class.tOInterfaceName" and "$class.getTOInterfaceName()" but nothing works. Of course I did change the andromda-cartridge.xml and the andromda-metafacades.xml. Any hints?

The only hint I can give you is to look into the file andromda-<name>.log where <name> stands for the name of your cartridge. There must be an error message from Velocity which may help you with debugging.

Ok, I had a look... And I found this:
---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ----
2004-02-25 10:50:58,924 - ------------------- Processing model element >>Monitor<< using template templates/MyFirstAndroMDA3.vsl
2004-02-25 10:50:58,924 - lookupDecoratorClass: org.omg.uml.foundation.core.UmlClass$Impl -> org.andromda.core.metadecorators.uml14.ClassifierDecoratorImpl
2004-02-25 10:50:58,924 - ResourceManager : found templates/MyFirstAndroMDA3.vsl with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2004-02-25 10:50:58,924 - org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/MyFirstAndroMDA3.vsl [line 2,column 14] : $class.getTOInterfaceName() is not a valid reference.
2004-02-25 10:50:58,924 - org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/MyFirstAndroMDA3.vsl [line 3,column 12] : $class.tableName is not a valid reference.
2004-02-25 10:50:58,924 - ------------------- Finished processing model element >>Monitor<< using template templates/MyFirstAndroMDA3.vsl
---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ----


I think there should be "de.dpcom.andromda.cartridges.persistence.ejb.EJBEntityDecoratorImpl" instead of "org.andromda.core.metadecorators.uml14.ClassifierDecoratorImpl". But how do I change it? The part of the andromda-metafacades.xml:
---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ----
<metafacade
metaobjectClass="org.omg.uml.foundation.core.UmlClass$Impl"


metafacadeClass="de.dpcom.andromda.cartridges.persistence.ejb.metadecorators.EJBEntityDecoratorImpl">
        <property reference="maxSqlNameLength"/>
        <stereotype>Entity</stereotype>
</metafacade>
---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ---- 8< ----

2. Will there be changes in AndroMDA3 about the Template-Handling or the
MMDs until the final release? Because I have some time now and we will start a few projects in the next month, I think about changing to AndroMDA3 and start writing my own cartridges. But just if there are no
big changes anymore...

Well, there will be one additional significant change: MMFs (formerly known as MMDs) will be split into an interface and an implementation. The implementation classes will be hidden and not directly extended (see yesterday's email "the decorator zombie strikes back!"). This will have an impact on your MMD implementation class. I will commit the change during the next three weeks, I think.

OK, then I'll wait with changing my old cartridges. But anyway I want to know how to use the MetamodelsFacades (quick learning, isn't it ;))... Maybe anyone can explain the interisting behavior above... :(


MArtin


------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Andromda-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to