Re: (xdoclet -> torque) with reference to interface

2004-06-29 Thread Thomas Dudziak
David Zejda wrote: The classes I sent you yesterday don't go through the xdoclet succesfully although I'm using the newly downloaded jars. But maybe I have the bad jars? - their sfv checksum is in attachment. Well, yes, you have to modify them so that the interface declares the PK and ojbConcreteC

Re: (xdoclet -> torque) with reference to interface

2004-06-29 Thread David Zejda
The classes I sent you yesterday don't go through the xdoclet succesfully although I'm using the newly downloaded jars. But maybe I have the bad jars? - their sfv checksum is in attachment. Thanks David > David Zejda wrote: > > > The problem with pk/fk unfortunately remains - I (actually OJB gree

Re: (xdoclet -> torque) with reference to interface

2004-06-28 Thread Thomas Dudziak
David Zejda wrote: The problem with pk/fk unfortunately remains - I (actually OJB greenhorn) 'm still missing something. Please have a look on attachement with your experienced eye. Congrats, you actually found a bug ! But seriously, there was a bug where feature tags were not correctly inherited

Re: (xdoclet -> torque) with reference to interface

2004-06-28 Thread Thomas Dudziak
David Zejda wrote: The problem with pk/fk unfortunately remains - I (actually OJB greenhorn) 'm still missing something. Please have a look on attachement with your experienced eye. I'll check it later on today. Tom - To unsubsc

(xdoclet -> torque) with reference to interface

2004-06-28 Thread David Zejda
> > > >Maybe it's the problem - I declared them (pk, ojbConcreteClass) in the > > > >abstract class and referenced the interface. > > > > > > > This could also explain the error about the different number of PKs vs. > > FKs. > > > As a general rule, every class that is referenced by a persistent >

Re: (xdoclet -> torque) with reference to interface

2004-06-28 Thread Thomas Dudziak
Maybe it's the problem - I declared them (pk, ojbConcreteClass) in the abstract class and referenced the interface. This could also explain the error about the different number of PKs vs. FKs. As a general rule, every class that is referenced by a persistent reference must have a pk declared i

Re: (xdoclet -> torque) with reference to interface

2004-06-28 Thread David Zejda
> >My scenario is simple: > > > >MyInterface > >MyAbstractClass implements MyInterface > >MyClass extends MyAbstractClass > >(and a few more subclasses) > > > >where > > > >-all of them are provided with ojb.class, mapped to the same table > >-MyAbstractClass contains artificial primary key and ojb

Re: (xdoclet -> torque) with reference to interface

2004-06-28 Thread Thomas Dudziak
David Zejda wrote: as you can see from stacktrace: file: jar:file:...xdoclet-ojb-module-1.2.1.jar!/xdoclet /modules/ojb/resources/torque_xml.xdt[ojbdoclet] , i used the 1.2.1 version, downloaded exactly from http://cvs.apache.org/viewcvs.cgi/*checkout*/db-ojb/lib/xdoclet-1.2.1.jar http://cvs.apache

Re: (xdoclet -> torque) with reference to interface

2004-06-28 Thread Thomas Dudziak
David Zejda wrote: My scenario is simple: MyInterface MyAbstractClass implements MyInterface MyClass extends MyAbstractClass (and a few more subclasses) where -all of them are provided with ojb.class, mapped to the same table -MyAbstractClass contains artificial primary key and ojbConcreteClass fie

Re: (xdoclet -> torque) with reference to interface

2004-06-28 Thread David Zejda
B Users List" <[EMAIL PROTECTED]> Odesláno: 28. cervna 2004 12:07 Predmet: Re: (xdoclet -> torque) with reference to interface > David Zejda wrote: > > >Do I need factory-class/factory-method if I have ojbConcreteClass? > >I thougt, if the ojbConcreteClass is provi

Re: (xdoclet -> torque) with reference to interface

2004-06-28 Thread David Zejda
as you can see from stacktrace: file: jar:file:...xdoclet-ojb-module-1.2.1.jar!/xdoclet /modules/ojb/resources/torque_xml.xdt[ojbdoclet] , i used the 1.2.1 version, downloaded exactly from http://cvs.apache.org/viewcvs.cgi/*checkout*/db-ojb/lib/xdoclet-1.2.1.jar http://cvs.apache.org/viewcvs.cgi

Re: (xdoclet -> torque) with reference to interface

2004-06-28 Thread Thomas Dudziak
David Zejda wrote: Remains roughly the same. David Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0[ojbdoclet] at java.util.ArrayList.RangeCheck(ArrayList.java:507)[ojbdoclet] at java.util.ArrayList.get(ArrayList.java:324)[ojbdoclet] at xdoclet.modules.ojb.model.TorqueModelDef.ad

Re: (xdoclet -> torque) with reference to interface

2004-06-28 Thread Thomas Dudziak
David Zejda wrote: Do I need factory-class/factory-method if I have ojbConcreteClass? I thougt, if the ojbConcreteClass is provided, objects will be instantiated by Class.forName(ojbConcreteClass).newInstance(), so the zero-argument constructor would be sufficient.. But I may be wrong... You nee

Re: (xdoclet -> torque) with reference to interface

2004-06-28 Thread David Zejda
> Generating repository descriptors for interfaces works without problems, > but you should be aware of some things when using this at runtime. E.g. > you probably need factory-class/factory-method and perhaps ojbConcreteClass. Do I need factory-class/factory-method if I have ojbConcreteClass? I t

Re: (xdoclet -> torque) with reference to interface

2004-06-28 Thread David Zejda
er.run(Launcher.java:197)[ojbdoclet] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) - Puvodní zpráva - Od: "Thomas Dudziak" <[EMAIL PROTECTED]> Komu: "OJB Users List" <[EMAIL PROTECTED]> Odesláno: 28. cervna 2004 11:06 Predmet: Re: (xdoclet

Re: (xdoclet -> torque) with reference to interface

2004-06-28 Thread Thomas Dudziak
David Zejda wrote: I provided several (cca 20) more xdoclet ojb.class tags and appropriate ojb.fields, ojb.collections, ojb.references... Repository is being created OK, but the torque schema fails. I'm not sure, whether there is the problem with interface again, but the stacktrace is a bit similar

Re: (xdoclet -> torque) with reference to interface

2004-06-28 Thread David Zejda
Odesláno: 26. cervna 2004 20:20 Predmet: Re: (xdoclet -> torque) with reference to interface > David Zejda wrote: > > > I had a class with reference: > > > > * @ojb.reference class-ref="oit.agree.Agreement" > > *foreignkey="

Re: (xdoclet -> torque) with reference to interface

2004-06-26 Thread Thomas Dudziak
David Zejda wrote: I had a class with reference: * @ojb.reference class-ref="oit.agree.Agreement" *foreignkey="agreement_id" *auto-retrieve="true" *auto-update="false" *auto-delete="false" and referenced interf

(xdoclet -> torque) with reference to interface

2004-06-26 Thread David Zejda
I had a class with reference: * @ojb.reference class-ref="oit.agree.Agreement" *foreignkey="agreement_id" *auto-retrieve="true" *auto-update="false" *auto-delete="false" and referenced interface (with no ojb