Hibernate "boolean" not identified directly by Microsoft Sql Server 2008

Description

boolean type is not identified while creating tables with hibernate using Microsoft Sql Server 2008. Its not identified and binded automatically with respctive data type of Sql server.
Sql server data type for boolean is "BIT" which I need to specifically need to mention in column definition described as follow:

@Column(name = "is_treat_expired", columnDefinition = "BIT")
private Boolean isTreatExpiry;

I believe this could be a problem of the sql server dialect.

I faced this problem while using envers. I want to use a property of "@Audited" annotation naming "withModifiedFlag" which is a boolean flag. This actually adds a boolean specific column in the respected audit table . But as boolean is not identified directly and we don't have access to entity generated for audit tables, hibernate fails to generate audit table for that entity.

Environment

None

Status

Assignee

Gail Badner

Reporter

Tejas Patel

Fix versions

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure