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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

There are something wrong when using inet type with Hibernate



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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group