I am trying to add a new bool column to one of the tables using annotations, I tried
@Column(name = "selected", nullable = true)
private boolean selected;
and then I add getter / setter, but when I run the application, I get this error:
Exception occurred inside setter of com.ingens.warranty.model.WarrantyCase.warrantyDetail; nested exception is org.hibernate.PropertyAccessException: Exception occurred inside setter of com.ingens.warranty.model.WarrantyCase.warrantyDetail
I'm new to Hibernate, while my question might be a newbies question, but it got stuck calmly.
thanks
Edit:
Good. I found this error in the error stack, Unknown column 'warrantyse14_.selected' in 'field list' , apparently the column was not created, and the select sql command uses this column, which does not exist, so I assume that the annotation does not work for any For that reason, it just does not create a column after starting the application.
source share