Hi,

I'm using the CVS zip http://xdoclet.sourceforge.net/xdoclet-cvs.zip (thanks
for that Marcus, I forgot to say so at the time...)

For self-referencing beans I create an empty bean that inherits (e.g.
Manager extends Employee...and adds no extra functionality, [at present]..).

When XDoclet runs over the bean I get invalid Java generated for the PK
class and for the Data Object (these problems didn't occur with XDoclet
1.1.2).

The first problem is that an empty constructor is generated for the Data
Object, presumably alongisde a constructor which takes all of the
attributes.
Because my Bean has no attributes (except those inherited) I end up with 2
empty constructors.

The second problem is just that the same thing happens in the PK
object.....I get a 2nd constructor which takes no parameters....and yet it
*does* set the inherited PK attribute within the body.

The 3rd problem, also related, is that the "toString()" method in the Data
Object calls the append method on the string buffer with the attributes as
parameters; because there are no attributes this results in a call with no
parameters:
      str.append();
which is also invalid Java and causes a compile time error.

I couldn't find this on the list of bugs, and remember i cannot get the
latest from CVS (unless Marcus is kind enough to re-create the zip?) so I
don't know if this has been fixed.

Thanks for info on this

Chris
-=-=-=




 

Any e-mail message from the European Central Bank (ECB) is sent in good faith but 
shall neither be binding nor construed as constituting a commitment by the ECB except 
where provided for in a written agreement.
This e-mail is intended only for the use of the recipient(s) named above. Any 
unauthorised disclosure, use or dissemination, either in whole or in part, is 
prohibited.
If you have received this e-mail in error, please notify the sender immediately via 
e-mail and delete this e-mail from your system.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to