Bad setter method generation using name masks (AttributeFacadeLogicImpl).
-------------------------------------------------------------------------

         Key: UMLMETA-80
         URL: http://jira.andromda.org/browse/UMLMETA-80
     Project: UML Metafacades
        Type: Bug

    Versions: 3.1 Final, 3.2-RC1    
    Reporter: Erik Kimmel
 Assigned to: Wouter Zoons 
    Priority: Minor


Assuming that we have an UML with a class called 'Entity' and an attribute 
called 'entity_id', if we try to use the name masking options (set to 
lowercamelcase for properties and methods names), the hibernate cartridge 
generate the following setter method name:

public void setEntity_id(type entityId) {
    this.entityId = entityId;
}

To avoid this, simply change the handleGetSetterName() in 
AttributeFacadeLogicImpl for uml1.4 metefacades:

 - currently:


        return "set" + StringUtils.capitalize(metaObject.getName());

 - to fix:

        return "set" + StringUtils.capitalize(this.getName());

This is the same used in handleGetGetterName().


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Reply via email to