The question was: "can castor cope with mapping multiple classes to one sql table ?"
According to an OR mapping tools comparison page found at http://c2.com/cgi-bin/wiki?ObjectRelationalToolComparison (which seems really well done to me), the answer is NO. Castor does not support mapping of multiple classes to one table. See point 35.
Have a look to that page, it was extremely helpful to me.
BTW: does anyone think it would be a good idea to add this feature to castor ? I can figure out at at least a million cases in which this would be desirable, especially when coping with pre-existing code!
pfm
On Wed, 24 Sep 2003 22:39:38 +0200, Pierfrancesco Marsiaj <[EMAIL PROTECTED]> wrote:
Hi all,
I need to reiterate a question for which I haven't been able to find an answer.
In Castor JDO there seems to be a mandatory pattern usage when mapping classes to SQL tables: for each class you have to provide one SQL table.
Is it possible to do differently, i.e. map two or more related classes onto one SQL table ?
As an example: Class A contains Class B which contains Class C. I want to hold all properties of an instance of class A (with its subobjects B and C) into a single row of an SQL table.
Is this possible ? How would a mapping file look like for this situation ? Thank you,
pfm
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
________________________________________________________________________ Delivered using the Free Personal Edition of Mailtraq (www.mailtraq.com)
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
