Yep it is a good practice. Usually u should have an interface and several dao implementing that interface with a factory, so u can change your database implementation without having to change the whole code. You can subclass dao too if u like even if i prefer to use an interface. Bye F.
Sun Certified Enterprise Architect (SCEA) Sun Certified Web Component Developer (SCWCD) ----- Messaggio originale ----- Da: "Zhang, Larry (L.)" <[EMAIL PROTECTED]> A: Struts Users Mailing List <user@struts.apache.org> Inviato: Mercoledì 27 giugno 2007, 20:03:26 Oggetto: Dao subclass I have a question, is it a good practice to subclass dao? Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___________________________________ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html