From: Konstantin P. (JIRA) <ji...@co...> - 2008-07-24 07:16:17
|
[ http://jira.codehaus.org/browse/XDP-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142980#action_142980 ] Konstantin Pribluda commented on XDP-231: ----------------------------------------- See my comment on XDP-232 > @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 |