My mail server has been down for possibly 18 hours and I believe I've missed
all mailing list activity during that time...if you replied to my original
message below, can you please forward your reply directly to this new email
address.  I cannot yet find my thread in the archives.  Thanks.


-----Original Message-----
From: Marc Dugger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 2:42 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] generated beans, inheritance, etc.



I just hit a brick wall when trying to build an inheritance relationship
between two tables.  My generated beans are:

Bean1
Bean2 extends Bean1

I have extended these beans so I can write client code that deals with
interfaces and not concrete classes:

Impl1 extends Bean1 implements Interface1
Impl2 extends Bean2 implements Interface2

I tried to build the inheritance relationship:

<class name="Impl2" extends="Impl1" [...]>

Of couse, I receive a MappingException complaining that "the Java class
Impl2 does not extend or implement Impl1".  Obviously, I misunderstood
Castor inheritance thinking it wouldn't care.  Is anyone extending their
generated beans while using inheritance?  I'd like to hear from someone that
has already been through this tunnel and can tell me whether there's light
at the end or not.  Thanks.

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to