Hibernate + campo bit

Olá pessoal, estou com um problema com o hibernate e não consigo resolver, o que acontece é o seguinte:
Eu mando inserir um objeto e ele me retorna o seguinte erro:

Hibernate: insert into Cliente (Nome, Endereco, Cidade, Telefone, Email, estadoid, Senha, Numero, Bairro, Complemento, Cep, CpfCnpj, Sexo, DataNascimento, telefonecelular, telefonecomercial, livrariaid) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) 11:43:50,437 WARN JDBCExceptionReporter:77 - SQL Error: 0, SQLState: 42804 11:43:50,468 ERROR JDBCExceptionReporter:78 - ERROR: column "sexo" is of type bit but expression is of type smallint could not insert: [br.lv.objeto.Cliente]

Bom a minha estrutura é a seguinte: Hibernate Annotations GA + Postgresql

Minha tabela é a seguinte:

CREATE TABLE cliente ( clienteid bigserial NOT NULL, nome character varying(100) NOT NULL, email character varying(120) NOT NULL, senha character varying(32) NOT NULL, endereco character varying(120) NOT NULL, numero character varying(12) NOT NULL, cidade character varying(120) NOT NULL, complemento character varying(80), cep character varying(8) NOT NULL, cpfcnpj character varying(14) NOT NULL, telefone character varying(10) NOT NULL, datanascimento date NOT NULL, sexo bit(1) NOT NULL, livrariaid integer NOT NULL, estadoid integer NOT NULL, bairro character varying(120) NOT NULL, telefonecelular character varying(10), telefonecomercial character varying(10) )

A classe cliente que eu estou persistindo estende da classe pessoa. Portanto está mapeado assim:

[code]
@MappedSuperclass
public abstract class Pessoa {
/**
*Sexo da pessoa
*/
private Byte sexo;
@Column(name=“Sexo”)
public Byte getSexo() {
return sexo;
}

public void setSexo(Byte sexo) {
	this.sexo = sexo;
}

}[/code]

@Entity @SequenceGenerator(name = "SEQUENCE", sequenceName = "cliente_clienteid_seq") public class Cliente extends Pessoa { //ATRIBUTOS ESPECIFICOS GETS E SETS }

Os mapeamentos aparentemente estão corretos, sendo que quando inicio a aplicação ele faz todos os bind`s e não retorna erro algum.

Alguém sabe me ajudar?

Muito Obrigado

cara, da uma olhada nesse link, o problema talves seja que você não está registrando o tipo da coluna…

talves vc tenha que extender ela…

http://kickjava.com/src/org/hibernate/dialect/PostgreSQLDialect.java.htm

Boa sorte!!!

Opa valeu pela resposta…

Infelizmente o hibernate não aceita este tipo de dado no banco. Bom para resolver o meu problema eu vou alterar a coluna no meu banco de dados.

Poderia fazer mudando a classe dialect, mas isso não quero fazer não… hehehehe… valeuuuu