There are something wrong when using inet type with Hibernate - Mailing list pgsql-jdbc

From
Subject There are something wrong when using inet type with Hibernate
Date
Msg-id 1AAB9C52CC852A44BF1DA9BFA8469193082739@winserver5.sinocodecn.com
Whole thread Raw
List pgsql-jdbc

Hi

     

When I use inet type with hibernate. I mapping as follow:

    <property name="registerIp" type="java.lang.String">

           <column name="`registerIp`" />

       </property>

       <property name="isBlock" type="java.lang.Boolean">

           <column name="`isBlock`" not-null="true" />

    </property>

 

The  registerIp is inet type,when I insert into the progresql database, it show

 

org.springframework.orm.hibernate3.HibernateJdbcException: JDBC exception on Hibernate data access; nested exception is org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update

 

how can I solve it ,thanks

pgsql-jdbc by date:

Previous
From: Hartmut Benz
Date:
Subject: Small addition to PGInterval
Next
From: "ljairath@uoguelph.ca"
Date:
Subject: Sudden JVM crashes - a Postgres driver problem?