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() {
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. |