[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6246) ConfiguredClass should honor default access from persistence-metadata-unit
Strong Liu (JIRA)
noreply at atlassian.com
Mon May 23 10:54:24 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42381#action_42381 ]
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list