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
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
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
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
> > > >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
>
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
> >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
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
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
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
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
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
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
> 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
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
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
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="
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
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
19 matches
Mail list logo