We have some Hibernate getter methods annotated with both @Column
and @Basic
.
We get an exception if we don't have the corresponding setter. Why is this?
In our case we are deriving the value returned from the getter (to get stored in the DB) and the setter has no functional purpose. So we just have an empty method to get around the error condition..