[ http://jira.andromda.org/browse/SPRING-181?page=all ]
Jens Vagts resolved SPRING-181:
-------------------------------
Resolution: Fixed
> Unnecessary Cast in generated loadAll() method
> ----------------------------------------------
>
> Key: SPRING-181
> URL: http://jira.andromda.org/browse/SPRING-181
> Project: Spring Cartridge
> Type: Bug
> Environment: Windows XP Prof., JDK 1.4.2
> Reporter: Dirk Rademann
> Assignee: Jens Vagts
> Priority: Minor
>
> Inside of generated ...DaoBase.java files an unnecessary cast is added.
> Example (generated by: SpringHibernateDaoBase.vsl in
> andromda-spring-cartridge):
> public java.util.Collection loadAll() {
> return (java.util.Collection)this.loadAll(TRANSFORM_NONE);
> }
> public java.util.Collection loadAll(final int transform)
> {
> final java.util.Collection results =
> this.getHibernateTemplate().loadAll(
>
> de.kombiverkehr.kms.auftrag.core.domain.AufkommenszaehlerImpl.class);
> this.transformEntities(transform, results);
> return results;
> }
> As you can see, the cast in loadAll() ain't necessary and IDEs like Eclipse
> are producing a warning each time.
> Would be nice if this could be fixed. Thankye.
--
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