I got an error about data type inet(postgresql) while trying to maping with hibernate.this type(inet of postgresql) in mapping file is mapping to java.lang.String ,but when I want to insert data,it generate a “org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update”
mapping file
<property name=”registerDate” type=”java.util.Date”>
<column name=”`registerDate`” length=”13″ not-null=”true” />
</property>
<property name=”registerIp” type=”java.lang.String”>
<column name=”`registerIp`” />
</property>
the “registerIp” is inet type of postgresql