Skip site navigation (1) Skip section navigation (2)

There are something wrong when using inet type with Hibernate

From: <wuhaitao(at)sinocode(dot)com(dot)cn>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: There are something wrong when using inet type with Hibernate
Date: 2007-03-29 07:26:51
Message-ID: 1AAB9C52CC852A44BF1DA9BFA8469193082739@winserver5.sinocodecn.com (view raw or flat)
Thread:
Lists: 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

Next:From: Hartmut BenzDate: 2007-03-29 13:00:25
Subject: Small addition to PGInterval
Previous:From: Kris JurkaDate: 2007-03-29 00:53:58
Subject: problems with plan invalidation

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group