I observe that while saving an entity in database using Hibernate, even if I don't provide a parameter less constructor (there is a parameter constructor provided by me so default constructor can't be provided), it works. But while using the operation delete, it throws an exception that Default constructor is not present. (No default constructor for entity: : com.hibernate.demo.entity.Instructor)
I want to ask in which cases is a parameter less constructor necessary for Hibernate. When is it invoked during a delete operation?
I follwed this question which has some varying answers Why does Hibernate require no argument constructor?