[ http://jira.andromda.org/browse/SPRING-157?page=comments#action_12613 ]
Andreas Spankus commented on SPRING-157: ---------------------------------------- i've forgotten link to the forum: http://galaxy.andromda.org/forum/viewtopic.php?t=2000 > ambiguous constructor in daobase using value objects > ---------------------------------------------------- > > Key: SPRING-157 > URL: http://jira.andromda.org/browse/SPRING-157 > Project: Spring Cartridge > Type: Bug > Versions: 3.2-RC1 > Reporter: Andreas Spankus > Assignee: Chad Brandon > > modelling a value object with one attribute - which gets just one dependency > from the entitiy and has no further associations the generated code of the > according DaoBase seems to be not correct, because the constructor is > ambiguous! > The SpringHibernateDaoBase.vsl around line 873 generates: > #end > ${indent}${property.type.javaNullString}## no new line > #end > the generated code: -> new ${modelledVoName}(null); > The ValueObject gets two constructors: > - 1.) parameter: the same class (otherBean) > - 2.) parameter: the modelled attribute -- 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 xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
