Now, the data type of the variable in my Java class is "boolean". I want to store it in a PostgreSQL table. The column in which I want to store my data has data type defined as "bit". But when I try to save the object which has this boolean variable, I get the error:
ERROR: column "isdeleted" is of type bit but expression is of type boolean
I'm using Hibernate to store the data. My code snippet for defining and mapping my variable:
@Column(name = "isDeleted")
private boolean isDeleted;
How do I save my object? Thank you!