Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1178

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1178
    Summary: hibernate.subclass generates superclass properties without package 
structure
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             Hibernate Module
   Versions:
             1.2.2

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: marc schipperheyn

    Created: Sun, 5 Dec 2004 9:13 AM
    Updated: Sun, 5 Dec 2004 9:13 AM
Environment: windows xp, java 1.4

Description:
When you generate an inheritance structure using 

**superclass**
 * @hibernate.class table="Users" discriminator-value="U"
 * @hibernate.discriminator column="Subclass" type="char"

**subclass**
 * @hibernate.subclass discriminator-value="S"

the resulting mapping file contains the superclass properties without their 
package structures and their method names include the "get". e.g.

<property
            name="email"
            type="String"
            column="getEmail"
            not-null="false"
            unique="false"
        />

notice the getEmail in stead of email and the String in stead of 
java.lang.String. The same goes for references to other classes in a project.

The properties for the subclass do have proper package structures. I use the 
following ant task configuration:

            <hibernatedoclet
                destdir="${src.dir}"
                excludedtags="@version,@author,@todo"
                mergedir="${build.dir}"
                verbose="true">
            
                <fileset dir="${src.dir}">
                    <include name="**/*.java"/>
                </fileset>

                <hibernate prefixWithPackageStructure="true"
                        version="2.1"/>                 
            
            </hibernatedoclet>


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to