CRUD no well resolved when using composite keys 
------------------------------------------------

         Key: SPRING-202
         URL: http://jira.andromda.org/browse/SPRING-202
     Project: Spring Cartridge
        Type: Bug

  Components: CRUD  
    Versions: 3.2    
    Reporter: transcom
 Assigned to: Chad Brandon 


When using two <<identifiers >> as PK and setting <<Manageable>> stereotype 
this code does not compile
I use patched vsl from SPRING 188

//pepeManageableServiceBase//

 private static com.transcomww.pdp.entities.crud.pepeValueObject 
toValueObject(com.transcomww.pdp.entities.pepe entity)
    {
        final com.transcomww.pdp.entities.crud.pepeValueObject valueObject = 
new com.transcomww.pdp.entities.crud.pepeValueObject();

        valueObject.setId1(entity.getId1());
        valueObject.setId2(entity.getId2());
        valueObject.setNombre(entity.getNombre());

        return valueObject;
    }

//pepeManageableDaoBase//

 public com.transcomww.pdp.entities.pepe create(java.lang.Long id1, 
java.lang.Long id2, java.lang.String nombre)
    {
        final com.transcomww.pdp.entities.pepe entity = new 
com.transcomww.pdp.entities.pepeImpl();
        entity.set
        entity.setId2(id2);
        entity.setNombre(nombre);

        return (com.transcomww.pdp.entities.pepe)this.getDao().create(entity);
    }

public com.transcomww.pdp.entities.pepe update(java.lang.Long id1, 
java.lang.Long id2, java.lang.String nombre)
    {
        final com.transcomww.pdp.entities.pepe entity = this.getDao().load(id1);

        entity.setId2(id2);
        entity.setNombre(nombre);

        this.getDao().update(entity);
        return entity;
    }

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


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

Reply via email to