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
There might be two cases.
You have declared the column's default value as NONE and are not not passing any value to it while inserting.
You have declared the column in database, but you have not declared the same in your entity object, which is causing the error.