See the defaultIdentifier:
http://team.andromda.org/docs/andromda-metafacades-uml/namespace.html
(you don't have datatype.Long defined in your model so
therefore it can't find this type). You can turn this
feature on/off as well. There's an andromda-profile
that you can use a module from Magic Draw which gives
you all available datatypes, stereotypes, and tagged
values.
Chad
--- Christian Seiler <[EMAIL PROTECTED]> wrote:
> 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 part 2 application/octet-stream
name=test1.xml.zip2
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user