Message:

  A new issue has been created in JIRA.

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

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1166
    Summary: Inverse attribute missing in Hibernate generated mappings
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: 1 hour
 Time Spent: Unknown
  Remaining: 1 hour

    Project: XDoclet
 Components: 
             Hibernate Module
   Versions:
             1.2.1

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Alexandre ROMAN

    Created: Wed, 24 Nov 2004 9:25 AM
    Updated: Wed, 24 Nov 2004 9:25 AM
Environment: maven 1.0.1, xdoclet 1.2.1, hibernate 2.1.7

Description:
I'am using XDoclet plugin together with maven to generate my Hibernate 
mappings. I've setup in my project.properties the Hibernate version property to 
the value 2.1, as indicated here : http://www.hibernate.org/134.html. Since I 
use Hibernate 2.1.x, I choose to set the version number to 2.1 for XDoclet.

When I generate my mappings, I noticed that the inverse attribute on list and 
bags weren't generated by XDoclet. In fact, they are completly missing in my 
.hbm.xml files, although they are in my Java source files.

After looking in the CVS sources today, I found the following lines in the file 
hibernate-properties.xdt :

<XDtConfig:ifConfigParamEquals paramName="version" value="2.0">
            inverse="<XDtMethod:methodTagValue tagName="hibernate.list" 
paramName="inverse"  values="true,false" default="false"/>"

Obviously, if the version is not set to 2.0, the inverse attribute is not 
generated. When I set the version attribute to 2.0 in my project.properties, 
everything is fine !


---------------------------------------------------------------------
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