Message:

  A new issue has been created in JIRA.

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

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1369
    Summary: @hibernate.many-to-one property-ref is not generated if hibernate 
version is specified as "2.1"
       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: Kresimir Tonkovic

    Created: Thu, 28 Apr 2005 3:34 AM
    Updated: Thu, 28 Apr 2005 3:34 AM
Environment: Eclipse 3.1M6, Ant 1.6.2, java 1.5

Description:
The following tag:
        /**
         * @hibernate.many-to-one column = "X_ID" property-ref = "xID"
         */

when generated by the following ant task
                <hibernatedoclet
                        destdir="${build.dir}" 
                        verbose="true" 
                        force="true" 
                >
                        <hibernate version="2.0" />
                        <fileset dir="${src.dir}" includes="+**/*.java" />
                </hibernatedoclet>

will produce the following hibernate mapping:
        <many-to-one
            name="x"
            class="x.X"
            cascade="none"
            outer-join="auto"
            update="true"
            insert="true"
            access="property"
            property-ref="xID"
            column="X_ID"
        />
Which is correct. However, if hibernate version in the ant task is changed to 
"2.1", the produced hibernate mapping is as follows:

        <many-to-one
            name="x"
            class="x.X"
            cascade="none"
            outer-join="auto"
            column="X_ID"
        />
Which is very not correct. Particularly, the property-ref attribute is mussing. 
A similar bug for hibernate 2.0 was reported against xdoclet 1.2beta3 and 
(obviously) fixed. It seems like this fix didn't propagate into tempaltes for 
hibernate 2.1


---------------------------------------------------------------------
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.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to