i use the reverse engeneering in my class and get this:
@Entity
@Table(name = \"user\", catalog = \"bytecode\", uniqueConstraints =
@UniqueConstraint(columnN
Do you have to have it as a bit
type in MySQL? The easiest solution would be to change the data type in MySQL to tinyint(1)
.
Otherwise you should be able to map your entity type to an integer using annotations; Not sure about this, have to look it up
...
@Column(nullable=false)
@Type(type="org.hibernate.type.BooleanType")
private short type;