Allow use of Generics with SpringDao FinderMethods

Description

use of multiplicity and uniqueness for finder method return types does not work as expected. For details see:

http://forum.andromda.org/viewtopic.php?f=16&t=7320

Environment

None

Activity

Show:
Andy Flury
July 1, 2012, 3:16 PM

SpringHibernateDaoBase.vsl will generate the following inside the finder method if generics with multiplicity greater than one is used as return type:

if (results.size() > 1)
{
throw new InvalidDataAccessResourceUsageException(
"More than one instance of 'com.algoTrader.entity.security.Future"
+ "' was found when executing query --> '" + queryString + "'");
}

Andy Flury
July 2, 2012, 5:39 PM

updated project containing Value Object TestVO

Assignee

Former user

Reporter

Andy Flury

Labels

None

Components

Affects versions

Priority

Minor
Configure