I am using postgres v8.3, which has a column type as XML. DDL is as follows:
CREATE TABLE contact (
"ID" INTEGER NOT NULL ,
"NAME" VARCHAR NOT NULL,
"Details" XML , ......
In the display hbm.xml file, we map it as follows:
<key-property name="Details" type="java.lang.String" >
<column name="Details" />
</key-property>
and I think this is the cause of the error: There is no display of dialects for the JDBC type: 1111 when I run a select query using:
List<?> contactList= session.createSQLQuery("select * from contact where id=" + val.getId() + " and name= '" + val.getName + "'").list();
but how can I map the "XML" type to the java data type?
source
share