final static declarations for constants on <<Entity>>
-----------------------------------------------------

         Key: HIB-68
         URL: http://thecla.homeftp.net:8380/jira/browse/HIB-68
     Project: Hibernate Cartridge
        Type: New Feature
    Reporter: Dirk Rademann
 Assigned to: Martin West 


I need to put a constant field on a Hibernate <<Entity>>. I tried to add a new 
attribute to the entity (ie. ENTITY_CODE_BOOKED) and marked it as static and 
final and provided an initial value. Unfortunately the generator just added 
another field to the class and the Hibernate mapping file. Currently it ignores 
the static and final settings on entity attributes.

A great new feature for the Hibernate generator would be to change it so static 
final attributes are added as constants (public static final <type> <name> = 
<value>;) to the entity class.

ps. the constant value is needed for the application to access a specific 
entity and the best place to store such a constant would be the entity class.

Thank you,
Dirk Rademann

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://thecla.homeftp.net:8380/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-devel mailing list
Andromda-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to