You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Maksimenko Alexander <ma...@bird.cris.net> on 2004/05/21 12:57:11 UTC
XDoclet: conversion attribute
I've discovered that problem is more serious:
I create own field convertor - GroupTypeConverter. I specify it's name
as conversion attribute in class Group and put both classes in the same
directory. But even now xdoclet doesn't find class GroupTypeConverter!
I guess it tries to search GroupTypeConverter in the classpath wich is
specified in testdef tag.
--
Maksimenko Alexander
Softwarium, www.softwarium.net
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: XDoclet: conversion attribute
Posted by Maksimenko Alexander <ma...@bird.cris.net>.
Thomas Dudziak wrote:
>Correct, it tries to load it via the classpath that was used to locate the
>ojb-xdoclet ant task.
>If you cannot (or are not willing to) supply the compiled class - say, it
>is dependent upon the output of the xdoclet module - then you can set the
>checks attribute of the ojbdoclet task to 'basic' - this directs the
>xdoclet module to ignore checks that involves loading of classes via the
>classloader (e.g. field conversions, query customizers etc.). You'll need
>the current version (CVS, available via the interface on OJB's website) of
>the XDoclet module for this, however.
>
>Tom
>
>
Thanks a lot!
It's works :)
--
Maksimenko Alexander
Softwarium, www.softwarium.net
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: XDoclet: conversion attribute
Posted by Thomas Dudziak <to...@first.gmd.de>.
On Fri, 21 May 2004, Maksimenko Alexander wrote:
> I've discovered that problem is more serious:
> I create own field convertor - GroupTypeConverter. I specify it's name
> as conversion attribute in class Group and put both classes in the same
> directory. But even now xdoclet doesn't find class GroupTypeConverter!
> I guess it tries to search GroupTypeConverter in the classpath wich is
> specified in testdef tag.
Correct, it tries to load it via the classpath that was used to locate the
ojb-xdoclet ant task.
If you cannot (or are not willing to) supply the compiled class - say, it
is dependent upon the output of the xdoclet module - then you can set the
checks attribute of the ojbdoclet task to 'basic' - this directs the
xdoclet module to ignore checks that involves loading of classes via the
classloader (e.g. field conversions, query customizers etc.). You'll need
the current version (CVS, available via the interface on OJB's website) of
the XDoclet module for this, however.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org