[ http://jira.codehaus.org/browse/XDP-122?page=comments#action_54055 ] 

Marc Guillemot commented on XDP-122:
------------------------------------

I'm not sure but I think that the patch is wrong as well: if no access 
attribute is provided in the @hibernate.property tag (or others), then no 
access="..." should be generated as it is not a mandatory attribute.

This problem exists only since version 1.0.3 (this was ok in version 1.0.2)

> HibernateMappingPlugin.accumulateProperties property.setAccess("method") 
> -------------------------------------------------------------------------
>
>          Key: XDP-122
>          URL: http://jira.codehaus.org/browse/XDP-122
>      Project: XDoclet 2 Plugins
>         Type: Bug

>   Components: hibernate
>     Reporter: Jack Hung
>  Attachments: plugin-hibernate-access.diff, plugin-hibernate-access.patch
>
>
> In accumulateProperties(...)
>                           
> if("field".equals(((DocletTag)getTags(beanProperties[i].getAccessor(),requieredTags).get(0)).getNamedParameter("access")))
>          {
>           property.setAccess("field");
> } else {
> //jh     property.setAccess("method");
>            property.setAccess("property");  // my modification
> }
> Hibernate 3 failed on the generated hbm.xml containing:
>    access="method"
> It should really be:
>   access="property"

-- 
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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
xdoclet-plugins-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to