We have some Hibernate getter methods annotated with both @Column
and @Basic
.
We get an exception if we don\'t have the corresponding sette
Hibernate uses set
method to initialize the entity which you're reading from your DB.
Maybe, if you make access modifiers of entity fields default
or protected
or public
then Hibernate will initialize fields directly without using setter (I read something about it but I'm not sure that it works). But using setter is much more preferred way.