db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Hopf <h...@synyx.de>
Subject Re: Inheritance and additional attributes
Date Mon, 29 May 2006 08:51:51 GMT

Thomas Fischer schrieb:
> It is not possible to define additional attributes in the subclasses, nor
> is it possible to use another table for this. You must declare all members
> in the one table where all the class hierarchy are saved to. What you can
> do is to declare the "additional" members als protected, and override the
> getters and setters with public methods in the subclass where you want to
> access them.
Thanks for the clarification. What I'll do is to use delegation and wrap
the classes with interfaces.

Kind regards

 * Florian Hopf
 * Synyx GmbH & Co. KG
 * phone  +49(0)721 9118303
 * eMail  hopf@synyx.de
 * www    http://www.synyx.de
 * irc    irc.synyx.de

To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

View raw message