Hi,
I'm just playing around with the Spring cartridge and now I'm facing a
problem, which I couldn't solve for hours.

I created two very simple classes and tagged them es entities. The first
class (Test) doesn't have an attribute at all, the second class (Test2)
has one attribute.

This is what AndroMDA produces:




//
// Attention: Generated code! Do not modify by hand!
// Generated by: HibernateEntity.vsl in andromda-spring-cartridge. //
package ;

/**
 * 
 */
public interface Test
{
    /**
     * 
     */
    public $typeName Id();
    public void setId(${typeName} id);
}


and the second interface:

//
// Attention: Generated code! Do not modify by hand!
// Generated by: HibernateEntity.vsl in andromda-spring-cartridge. //
package ;

/**
 * 
 */
public interface Test2
{
    /**
     * 
     */
     java.lang.Long getTest();
     void setTest(java.lang.Long test);

    /**
     * 
     */
    public java.lang.Long Id();
    public void setId(java.lang.Long id);
}



There seems to be a "phantom" attribute "id", which doesn't exist in the
UML source and which doesn't have a type. That's why the type is
"$typeName" in the first example. In the second example the type of the
preceding attribute (Long) is used.


There is also an error log, which I believe has the same cause:

2004-10-20 15:53:10,803 ERROR [AndroMDA:VALIDATION:ERROR] 1)
org.andromda.metafacades.uml14.AttributeFacadeLogicImpl[id]:Each
attribute needs a type, you cannot leave the type unspecified.



Any clues? It doesn't seem to be an issue of the Spring cartridge, as
the same log shows up, when I only use e.g. the Java cartridge.



Class diagrams (Magicdraw) are attached (I had to change the name from
.zip to zip2 due to
mailserver restrictions).


Tools:
Magicdraw 8.0
AndroMDA 3.0M3 (latest snapshot)
maven plugin


Some weeks ago there was a similar posting (without answer):
http://www.mail-archive.com/[EMAIL PROTECTED]/msg02408
.html

I'm pretty much an AndroMDA newbie, so I hope I didn't overlook a very
basic FAQ.

Thanks,
Christian

Attachment: test1.xml.zip2
Description: Binary data

Reply via email to