I'm new to hibernate and I have got a problem with mapping (actually creating) a boolean class attribute to a boolean database attribute.
Class Attribute looks like:
Code:
private boolean isAdmin;
corrsponding mapping property is:
Code:
<property name="isAdmin" column="isAdmin" not-null="false"/>
Hibernate creates this attribute as a "bit" type in my Postgres database and so I get an error message if I want to set the value to false or true.
I already tried to set
Code:
type="boolean"
but it still creates a bit type.
Any ideas howto create a bool type?