Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
does hibernate always need a setter when there is a getter
does hibernate always need a setter when there is a getter ¬†using -'java,hibernate,getter-setter'
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.. ¬†¬†
Oct 7, 2015
to add a comment.
Related Hot Questions
Government Jobs Opening