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 -----
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.

Reply via email to