I got an error message from this:
java.sql.SQLException: Field \'supplier_id\' doesn\'t have a default value at com.mysql.jdbc.SQLError.createSQLExcepti
I added this property
create
into hibernate.cfg.xml file, and it worked for me.
hibernate.cfg.xml