[Fwd: Re: Inheritance using special attribute ojbConcreteClass issue]

2005-10-27 Thread Bernd Laengerich
Thomas Dudziak wrote: Might be either the XDoclet module or Torque. Could you post the generated repository file ? I found out what the Problem ist, I guess. The accept-data.xml generated by Torque contains the java attribute names instead of the data base column names, so in: the content i

Re: Inheritance using special attribute ojbConcreteClass issue

2005-10-26 Thread Thomas Dudziak
On 10/26/05, Bernd Laengerich <[EMAIL PROTECTED]> wrote: > > As for the error message, for now you can turn off the XDoclet check > > using the checks attribute as described here:# > > It's not XDoclet complaining, but Torque, so is this a Torque issue? > The error message and stack trace (with -d

Re: Inheritance using special attribute ojbConcreteClass issue

2005-10-26 Thread Bernd Laengerich
Thomas Dudziak wrote: Oh, yes, I missed the BaseB part. :-) I stripped down from company sources and uglified the names. So you're mapping unrelated inheritance hierarchies onto the same table ? Yes. This is kind of historically based, I designed for different classes and tables, but the

Re: Inheritance using special attribute ojbConcreteClass issue

2005-10-26 Thread Thomas Dudziak
On 10/26/05, Bernd Laengerich <[EMAIL PROTECTED]> wrote: > Thomas Dudziak wrote: > > > I think the error comes from the XDoclet module, not from Torque. > > The problem is that you should not redefine the field in the subclass > > I haven't redefined it in the java code, so you think it should not

Re: Inheritance using special attribute ojbConcreteClass issue

2005-10-26 Thread Bernd Laengerich
Thomas Dudziak wrote: I think the error comes from the XDoclet module, not from Torque. The problem is that you should not redefine the field in the subclass I haven't redefined it in the java code, so you think it should not appear in the repository xml for the subclass? The usual pattern

Re: Inheritance using special attribute ojbConcreteClass issue

2005-10-25 Thread Thomas Dudziak
On 10/25/05, Bernd Laengerich <[EMAIL PROTECTED]> wrote: > Hi, > > is there any way to tell OJB to use a different attribute name for a > specific class instead of ojbConcreteClass? > > The problem is, I have a table A with objects of two different classes > A und B (both using inheritance) instant

Inheritance using special attribute ojbConcreteClass issue

2005-10-25 Thread Bernd Laengerich
Hi, is there any way to tell OJB to use a different attribute name for a specific class instead of ojbConcreteClass? The problem is, I have a table A with objects of two different classes A und B (both using inheritance) instantiated from it. Torque refuses the "datasql" target with the err