@hibernate.key-many-to-one tag 'lazy' parameter is ignored when .hbm is 
generated
---------------------------------------------------------------------------------

                 Key: XDP-231
                 URL: http://jira.codehaus.org/browse/XDP-231
             Project: XDoclet 2 Plugins
          Issue Type: New Feature
          Components: hibernate
    Affects Versions: 1.0.4
         Environment: xdoclet-plugin-hibernate-1.0.4
            Reporter: Shyamsunder Mutcha
             Fix For: 1.0.4


When I use lazy="false" with the tag @hibernate.key-many-to-one, it is not 
added to generated .hbm file.  I have updated the KeyManyToOne.jelly to accept 
lazy and foreign-key param. Now the generated hibernate mapping file has 
lazy="false" and foreign-key elements, if they are mentioned with the tag 
@hibernate.key-many-to-one

Replace the element at line#4 in KeyManyToOne.jelly with the element given 
below. 
    <key-many-to-one name="${keyProperty.name}"
                     access="${property.access}"
                     type="${keyManyToOneTag.type}"
                     column="${keyManyToOneTag.column}"
                     length="${keyManyToOneTag.length}"
                     class="${keyManyToOneTag.class_}"
                     entity-name="${keyManyToOneTag.entityName}"
                     foreign-key="${keyManyToOneTag.foreignKey}"
                     lazy="${keyManyToOneTag.lazy}">

Or add the entries for lazy and foreign-key parameters.

XDoclet Hibernate Plugin version: 1.0.4


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to