Open
Description
Supporting methods as write-only fields, the current implementation causes confusion when using properties because the field value is a placeholder.
Or are there other correct ways to implement logical fields that I don’t know? Please let me know.
expect
public class Rectangle {
private int h;
private int w;
@Column
public int area() {
return h * w;
}
}
current
public class Rectangle {
private int h;
private int w;
@AccessType(AccessType.Type.PROPERTY)
private int area;
public int getArea() {
return h * w;
}
}