Hi All

Have been trying to get XDoclet to generate a hibernate .hbm mapping document
and have encountered a weird error.  I have set up ant with a xdoclet-hibernate
task and 2 beans (java source) that contain hibernate tags.

When I run the xdoclet task, only one of the beans is processed by the task! 
(The resulting mapping document for my one bean is correct).  It seems to ignore
the other java file no matter what I do.  Both source files are contained in the
same directory, so I'm sure that they are both included in the <fileset> tag.

My first bean is very simple and standalone with just properties mapped to DB
fields.  The second bean, which is being ignored, is a bit more complicated,
containing not only properties but a collection of beans of the first type.  I'm
thinking that xdoclet is finding something wrong with the tags in the second
bean and, for some reason, silently bypassing it without giving reasons why.

I've tried setting the ant task to "verbose" mode, but it doesn't give me any
more information about failure points than it gave me without.

I have two questions:

1) What criteria does the hibernate task use to determine if a java file is
actually a hibernate bean? (I'd assume that any @hibernate tag would be enough)

and

2) How do you get detailed information (or any, for that matter) on xdoclet
failure points (I mean aside from downloading the source and stepping through
with a debugger)?  In fact, shouldn't the task fail spectacularly if bad tags
are encountered? (I'm assuming so, but my task completes "successfully" in this
case.)

If anyone has run into this or has any suggestions as to how to go forward,
please let me know.  I'd love to be able to use xdoclet to generate the .hbm
files but I can't see this working out if it will never tell me about failures!

Thanks

- Jason


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to