This one time, at band camp, Marc Dugger said:
MD>I just hit a brick wall when trying to build an inheritance relationship
MD>between two tables. My generated beans are:
MD>
MD>Bean1
MD>Bean2 extends Bean1
MD>
MD>I have extended these beans so I can write client code that deals with
MD>interfaces and not concrete classes:
MD>
MD>Impl1 extends Bean1 implements Interface1
MD>Impl2 extends Bean2 implements Interface2
MD>
MD>I tried to build the inheritance relationship:
MD>
MD><class name="Impl2" extends="Impl1" [...]>
MD>
MD>Of couse, I receive a MappingException complaining that "the Java class
MD>Impl2 does not extend or implement Impl1". Obviously, I misunderstood
MD>Castor inheritance thinking it wouldn't care. Is anyone extending their
MD>generated beans while using inheritance? I'd like to hear from someone that
MD>has already been through this tunnel and can tell me whether there's light
MD>at the end or not. Thanks.
Marc,
The best advice I can give you on this topic is to take a look at the
simple inheritence between Computer and Product in the JDO examples. Maybe
seeing this example will provide you a starting point on which you can
base your situation and build it out from there. Information on these
is here:
http://www.castor.org/example.html
Bruce
--
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev