Hmm interesting, I haven't tried associating an
enumeration to an entity. However you can turn off
the default identifier generation add
allowDefaultIdentifiers with a value of false:
(http://team.andromda.org/docs/andromda-hibernate-cartridge/namespace.html)
in your hibernate namespace property and the id
attribute won't be generated.
--- Martin West <[EMAIL PROTECTED]> wrote:
> I have Role<<Entity>> has RoleType<<Enumeration>>
>
> with this setting I get the following hibernate
> runtime error:
> Exception:net.sf.hibernate.MappingException: An
> association from the
> table ROLE refers to an unmapped class:
> net.starmap.cannonical.RoleType
>
>
> If I add <<Entity>> to RoleType then andromda
> generates an additional
> constant value for attribute id and I get the
> following error:
>
> [javac] public static final RoleType id =
> new
> RoleType(${attribute.defaultValue});
>
> Suggestions?
>
> --
> Martin West
> Head of Product Design and Development
> http://www.star-map.net
> +44(0)207 318 0308
> +44(0)787 968 0096
>
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic
> Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1
> today.
>
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> Andromda-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/andromda-user
>
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user