Here is my JPA2 / Hibernate definition:
@Column(nullable = false)
private boolean enabled;
NumericBooleanType. For some reason this doesn't have a declared short type name so you'd have to use:
@Column(nullable = false) @Type(type = "org.hibernate.type.NumericBooleanType") private boolean enabled;
This does map to an INTEGER type but it will probably work fine with a TINYINT.
org.hibernate.type.NumericBooleanType Does not work with TINYINT in some RDBMS. Switch the database column type to INTEGER. Or use a different Java @Type value, or columnDefinition, as appropriate.
In this example, Dude's answer of
@Column(nullable = false, columnDefinition = "TINYINT(1)") would work without any database changes.