Title: Hibernate task not substituting packages properly

I'm expecting a package substitution to take place in the following task, but no go:

<!-- generate hibernate files -->      
<hibernatedoclet
        destdir="${build.dir}/ejb/gen"
        mergedir="metadata/ejb"
        excludedtags="@version,@author"
        addedtags="@xdoclet-generated at ${TODAY}"
        force="${xdoclet.force}">      
    <fileset dir="src/ejb"/>                           

    <!-- change package name -->
    <packageSubstitution packages="template"
            substituteWith="persistence"/>
       
    <hibernate/>

</hibernatedoclet>

It works for value objects, but not for this:

[ejbdoclet] Generating Value Object class: 'org.apache.template.User--> org.apache.persistence.User'.
[hibernatedoclet] Running <hibernate/>
[hibernatedoclet] Generating mapping file for org.apache.template.User.

Any ideas to get it to say "Generting mapping file for org.apache.persistence.User"?  I tried running hibernate on my generated VO, but all the hibernate tags are gone.

Matt

Reply via email to