[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6246?page=c...
]
Hardy Ferentschik commented on HHH-6246:
----------------------------------------
The spec says the following - 12.2.1.4:
{quote}
The access subelement is overridden by the use of any annotations specifying mapping
information on the fields or properties of the entity class; by any Access annotation on
the entity class, mapped superclass, or embeddable class; by any access subelement of the
entity-mappings element; by any Access annotation on a field or property of an entity
class, mapped superclass, or embeddable class; by any access attribute defined within an
entity, mapped-superclass, or embeddable XML element, or by any access attribute defined
within an id, embedded-id, version, basic, embedded, many-to-one, one-to-one, one-to-many,
many-to-many, or element-collection element.
{quote}
If I read this correctly, the the default only comes into play when I configure all
classes via xml and in none of the xml elements I explicitly specify the _access_
attribute. As soon as I have real annotation their placement will determine the default
access type. Just trying to figure out what to do here? Check whether all _@Id_
annotations are mocked and there is no _@Access_?
ConfiguredClass should honor default access from
persistence-metadata-unit
---------------------------------------------------------------------------
Key: HHH-6246
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6246
Project: Hibernate Core
Issue Type: Sub-task
Components: metamodel
Reporter: Strong Liu
Assignee: Strong Liu
Fix For: 4.0.0.Beta1
currently it only checks if @Access is defined on class or attribute
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira