I have a base object 'person' for which I have defined both a personObj to hold information and a personDAO to handle persistance. My person DAO has a getById() function which takes a uuid and returns a cfc of type personObj.
 
I now want a new object 'employee' so I create an employeeObj which extends person, and to handle the persistance I create a employeeDAO which extends personDAO. employee DAO also has a getById() function which takes a uuid and should return a cfc of type employeeObj.
 
My employeeDAO.getById() function is causing me problems. I am trying to call super.getById() but this returns an object of type personObj rather than employeeObj.
 
How can I leverage the DAO code I have written in the parent object?
 
John
 
 


To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. ----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to cfcdev@cfczone.org with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org

Reply via email to