[hibernate-issues] [Hibernate-JIRA] Resolved: (ANN-618) @AccessType("propery") cannot be overriden by @AccessType("field")
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Thu Jul 12 18:54:52 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bernard resolved ANN-618.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.3.1
I ran your test (after some basic fixing) on trunk and it works like a charm. I've committed it for you to study it.
There might have been a bug in 3.2.0 (I don't recall that), so I've marked it as fixed.
> @AccessType("propery") cannot be overriden by @AccessType("field")
> ------------------------------------------------------------------
>
> Key: ANN-618
> URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-618
> Project: Hibernate Annotations
> Issue Type: Bug
> Affects Versions: 3.2.0.ga
> Environment: Hibernate 3.2.1, Hibernate Annotations 3.2.0, Jboss 5 embeddable beta2
> Reporter: Dennis Fleurbaaij
> Priority: Minor
> Fix For: 3.3.1
>
> Attachments: AccessTest.java, Gardenshed.java
>
>
> The error comes down to the fact the following code does not work (also doesn't work when the @AccessType is place on the field):
> [code]
> @AccessType("propery")
> public class Test()
> {
> private String test;
> @AccessType("field")
> public WeirdCollection getTest()
> {
> return new WeirdCollection( test );
> }
> }
> [/code]
> Attachments are a class that tests this and the extended unit tests for all of this. Unfortunately both are not tested as I have no envoronment on hand here. Will probably require some work. should be placed in /hibernate-annotations-3.2.0.GA/test/org/hibernate/test/annotations/access
> Attached to forum thread: http://forum.hibernate.org/viewtopic.php?p=2353727#2353727
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list