> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:xdoclet-user-admin@;lists.sourceforge.net]On Behalf Of Sebastien
> BLANC
> Sent: 27. oktober 2002 19:47
> To: [EMAIL PROTECTED]
> Subject: [Xdoclet-user] bean inheritance / home generation
>
>
> Hello !
>
> having (Bean B) extends (Bean A), I get the following from xdoclet:
> (B generated home) extends (A generated home)
>
> xdoclet generates the findByPrimaryKey methods in both homes with 2
> different returned type (A & B) which fails at
> compilation.
>

I think we have had this discussion before. IMO inheritance should not be
applied for home interfaces. XDoclet should generate a BHome that *does not*
extend from AHome. The same should apply for generated primary key classes.
This is a bad (and useless) way to use inheritance.

How about removing inheritance for these?

Aslak

> I did not find a way to remove the findByPrimaryKey method generation in
> A home. the case appears in the xdoclet sample
> between PersonBean and AccountBean but I can't figure out what is the
> trick: I tried to remove all xtags from bean A with no success, so I
> guess there must be smthg to specify in B.
>
> currently developing a framework with few levels of inheritance so would
> greatly appreciate help.
>
> seb.
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ApacheCon, November 18-21 in
> Las Vegas (supported by COMDEX), the only Apache event to be
> fully supported by the ASF. http://www.apachecon.com
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to