No, I worked around the problem by not referencing the enumeration in
the model. Presumbably this is similar to the composite attribute
enhancement I logged on jira.

How do define a type safe enum in MD?

On Tue, 2004-08-31 at 23:03, Chad Brandon wrote:
> Hi Davin,
>  
> Yeah someone else (Martin West I believe) was struggling with this
> same question as well, the current andromda cartridges do not support
> persisted enumerations (only type safe enums).  Martin, did you ever
> come up with some alternative?  If someone wants to supply a patch,
> I'll definitely apply it.
>  
> Chad
>         ----- Original Message ----- 
>         From: Coleman, Davin
>         To: '[EMAIL PROTECTED]'
>         Sent: Tuesday, August 31, 2004 7:10 AM
>         Subject: [Andromda-user] Hibernate using <<Enumeration>>
>         
>         
>         How do I model an enumeration in UML for AndroMDA to generate
>         the enum represented in a table column? If I associate it I
>         get...
>         
>          
>         
>             /**
>         
>              * 
>         
>              *
>         
>              * @hibernate.many-to-one
>         
>              *     column="${target.columnName}"
>         
>              *     class="com.centrica.eec.common.Channel"
>         
>              *     not-null="true"
>         
>              */
>         
>          
>         
>         If I add an attribute of type I get
>         
>          
>         
>             /**
>         
>              * 
>         
>              *
>         
>              * @hibernate.property
>         
>              *     column="TMP"
>         
>              *     type="$attribute.type.fullyQualifiedHibernateType"
>         
>              *
>         
>              * @hibernate.column
>         
>              *     name="TMP"
>         
>              *     sql-type="com.centrica.eec.common.Channel"
>         
>              *     not-null="true"
>         
>              */
>         
>          
>         
>         Any ideas will be welcome.
>         
>          
>         
>         Davin Coleman
>         
>         
>         
>         ------------------------------------------------------------
>         The information contained in or attached to this email is
>         intended only for the use of the individual or entity to
>         which it is addressed. If you are not the intended
>         recipient, or a person responsible for delivering it to the
>         intended recipient, you are not authorised to and must not
>         disclose, copy, distribute, or retain this message or any
>         part of it. It may contain information which is confidential
>         and/or covered by legal professional or other privilege (or
>         other rules or laws with similar effect in jurisdictions
>         outside England and Wales).
>         The views expressed in this email are not necessarily the
>         views of Centrica plc, and the company, its directors,
>         officers or employees make no representation or accept any
>         liability for its accuracy or completeness unless expressly
>         stated to the contrary.
-- 
Martin West
Head of Product Design and Development
http://www.star-map.net
+44(0)207 318 0308
+44(0)787 968 0096

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to