[ http://jira.andromda.org/browse/BPM-252?page=comments#action_12080 ]
     
Wouter Zoons commented on BPM-252:
----------------------------------

CRUD currently does not support enumerations as identifiers types, the ids are 
hidden from the user so the enum would need special care

> Entities that contain Enumerations not generating correct code
> --------------------------------------------------------------
>
>          Key: BPM-252
>          URL: http://jira.andromda.org/browse/BPM-252
>      Project: Bpm4Struts Cartridge
>         Type: Bug
>   Components: CRUD
>     Versions: 3.1-RC1
>  Environment: Linux (Ubunut) JDK 1.5/1.4  MagicDraw 9.5 sp1
>     Reporter: Tim Dysinger
>     Assignee: Wouter Zoons
>  Attachments: AndromdaQAModel.xmi, AndromdaQAModel.xmi
>
> Created a model with two entities and one enumeration.  One entity (User) has 
> two string attributes.  The other <<Entity>> (Role) has one <<Identifier>> 
> attribute of type <<Enumeration>>.  This is because I want only predefined 
> applications roles to be in this table and the tables are used for a 
> JDBCRealm (Security) so the rolename and username must be the key.
> It doesn't matter if you make Role <<Manageable>> or not.  Either way the 
> code that is generated doesn't compile.  If eliminate the <<Enumeration>> and 
> make it a string it works fine.  I would like to use Enumeration for fixed 
> roles though.




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

Reply via email to