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..   
    
asked Oct 7, 2015 by suyesh.lokhande
0 votes
8 views



Related Hot Questions



Government Jobs Opening


...