NHibernate - Oracle 11g Configuration for XmlType

Posted by Daffi on Stack Overflow See other posts from Stack Overflow or by Daffi
Published on 2012-09-21T15:05:22Z Indexed on 2012/09/21 15:37 UTC
Read the original article Hit count: 653

Filed under:
|
|
|

Im trying to get NHibernate to work with Oracle 11g´s XmlType.

The following Exception is thrown:

Dialect does not support DbType.Xml

My configuration looks like:

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
  <session-factory>
    <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
    <property name="dialect">NHibernate.Dialect.Oracle10gDialect</property>
    <property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property>
    <property name="connection.connection_string">...</property>
    <property name="show_sql">false</property>
  </session-factory>
</hibernate-configuration>

Sure, the XmlType functionality was introduced in 11g but I dont know the configuration Mapping. Anyone here using this feature and willing to show its config?

Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about nhibernate