The create() methods of Dao classes for "required" parameters does not take the
assigned identifer as parameter.
----------------------------------------------------------------------------------------------------------------
Key: SPRING-195
URL: http://jira.andromda.org/browse/SPRING-195
Project: Spring Cartridge
Type: Bug
Versions: 3.2
Reporter: Luca De Petrillo
Assigned to: Chad Brandon
According to closed issue SPRING-136, the create() methods of Dao now take the
assigned identifier as a parameter if the Entity use the tag
@andromda.persistence.assigned.identifer, but this was implemented only for the
create() method that take all the arguments of an Entity: the create() method
that take only the required arguments misses the identifier parameter.
Looking at template files "SpringDao.vsl" and "SpringHibernateDaoBase.vsl",
i've seen that the create method that take all arguments retrieve the
attributes list using
$entity.getAttributes(true, $entity.usingAssignedIdentifier)
instead, the method that take only the required attribute use
$entity.getRequiredProperties(true,false)
i'm trying to use
$entity.getRequiredProperties(true,$entity.usingAssignedIdentifier) and seem
works.
--
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