--- Christoph Adl <[EMAIL PROTECTED]> wrote:
> Hello!
>
> I'm using XDoclet2 for about a month and think that
> it is a great part of software, and a nice job you
> have done.
>
> BUT - I had a problem today. I'm using XDoclet2 to
> generate Hibernate-Mapping files. In a special case
> this does not work properly.
>
> First, I'm using Java 1.5 Typesafe Enums. Correct
> syntax with enums seem to crash the XDoclet parser:
>
> public enum TestEnum {
> Value1, Value2;
> }
> E:\build.xml:28:
> com.thoughtworks.qdox.parser.ParseException: syntax
> error @[x,y] in file:/E:/DerivedClass.java
>
> The parser does not like the semi-colon after
> "Value2", which is correct syntax according to the
> "Planet" example in
>
http://java.sun.com/j2se/1.5.0/docs/guide/language/enums.html
Have you checked qdox website? ( qdox.codehaus.org )
There may be newer version available. This is
different project and we have no commit rights there.
( Only alternative would be fork )
> and the javac likes it as well. But that is not the
> big problem. Just to let u know. I just remove the
> semi-colon for now (which is correct syntax as
> well).
>
> =============
> There is no sign of my typedef :-(.
Please file JIRA issue abot it with as mich detail as
possible.
> While creating
> the example i realised, that there is a problem with
> the ANT integration as well. If i make changes to
> the DerivedClass.java-File, the BaseClass.hbm.xml
> file is not re-generated! This problem is probably a
> result of the fact, that the DerivedClass-Mapping
> must be included in the mapping file of BaseClass (a
> speciality of the Hibernate DTD).
Well, xdocelet plpugin decides which classes are to be
regenerated. but it processes only those classes
marked with @hibernate.class. So it does not see
changes into subclasses, as they are processed as part
of base class. Checking all subclasses for changes
would be kind of inconvenient.
( Though if you have good idea - we are open )
regards,
----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x? XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com