From: David L. <dle...@co...> - 2010-10-28 00:40:34
|
On 2010-10-27, at 7:19 PM, David Holt wrote: > Hi all, > > I might be doing something wrong, but when I eogenerate, my subclasses have errors in their fetchspec() methods. > > This is the relevant section in the Velocity template: > > public static ERXFetchSpecification<${entity.classNameWithOptionalPackage}> fetchSpec() { > return new ERXFetchSpecification<${entity.classNameWithOptionalPackage}>(${entity.prefixClassNameWithoutPackage}.ENTITY_NAME, null, null, false, true, null); > } > > This results in the following in the subclass > > public static ERXFetchSpecification<SubEntity> fetchSpec() { > return new ERXFetchSpecification<SubEntity >(_SubEntity.ENTITY_NAME, null, null, false, true, null); > } > > ThisAnd Eclipse has an error that reads "The return type is incompatible with _SuperEntity.fetchspec()" > > Is there anything I could do about this? Or should I just comment out this part of the template? > > David I think that's an old template. Subclassed entities should get a fetchSpecForSubClass() method. ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber twitter: http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org |