[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6246?page=c...
]
Strong Liu commented on HHH-6246:
---------------------------------
that's not true, here is the example
{code}
@Entity
public class Item {
private Long id;
private String name;
@Id
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@Column(name="NAME_PROPERTY")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
{code}
{code:xml}
<persistence-unit-metadata>
<persistence-unit-defaults>
<access>FIELD</access>
</persistence-unit-defaults>
</persistence-unit-metadata>
{code}
with this mapping, hibernate throws "Caused by: org.hibernate.AnnotationException: No
identifier specified for entity: org.hibernate.ejb.test.xml.access.Item"
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