JPA configure boolean fields to persist as integers
You can use the following annotation:
@Type(type="numeric_boolean")
If you want to write Y and N instead of 0, 1, you can use
@Type(type="yes_no")
You can specify the column definition:
@Column(name="boolColumn",
columnDefinition="INT(1)")