[hibernate-issues] [Hibernate-JIRA] Created: (ANN-618) @AccessType("propery") cannot be overriden by @AccessType("field")
Dennis Fleurbaaij (JIRA)
noreply at atlassian.com
Thu May 31 14:23:04 EDT 2007
@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
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