Marko Bekhta (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiOTU5NGQxMjcy...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16799?atlOrigin=eyJpIjoiOTU5NG...
) HHH-16799 (
https://hibernate.atlassian.net/browse/HHH-16799?atlOrigin=eyJpIjoiOTU5NG...
) Using bytecode enhancement may result in incorrect AccessType being picked (
https://hibernate.atlassian.net/browse/HHH-16799?atlOrigin=eyJpIjoiOTU5NG...
)
Issue Type: Bug Assignee: Unassigned Created: 14/Jun/2023 09:28 AM Priority: Major
Reporter: Marko Bekhta (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
With bytecode enhancement enabled and an entity like:
@Entity
private class SomeEntity {
@Id
Long id;
@Basic
String field;
String property;
@Basic
@Access(AccessType.PROPERTY)
public String getProperty() {
// do some fun stuff before returning a
return modifiedPropertyValue;
}
public void setProperty( String property) {
this.property = property;
}
}
PropertyAccessEnhancedImpl may end up picking an AccessType.FIELD for a property , which
will end up saving the “unmodified” property value.
This came up while looking into a bug reported at Quarkus.
(
https://hibernate.atlassian.net/browse/HHH-16799#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16799#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100226- sha1:c25eebb )