> Hi,
> I have 2 objects that the first is extends the
> second. should i consider any thing in their DAO
> class or their DAO are distinct?
> tx
Let me see if I undertood well. You have a class that extends other, I can guess that these two classes are composing a bussiness layer, right? and you wanna know if both should use the same DAO class? if so, I don't think you must use only the same DAO classes but any DAO class you want/need.
Hope have helped anyway.
thanks for your consideration.
I'm using "Transfer Object", "Business Object" and "Data Access Object" patterns. all are in business tier and my DAO objects should generate my TO objects. but i don't know how should i handle the relationship in DAO classes when one TO class extends another TO class.as i know there are two options in data model for me. 1- one table for both classes and nullable fields 2- two table with a foreign key. but how could i map these concepts to my DAO calss design?
Regards