首页 新闻 会员 周边 捐助

nhibernate配置Oracle方言的问题

1
悬赏园豆:50 [待解决问题]

关键配置文件大致如下:

<db:provider id="DbProvider" provider="Oracle.DataAccess.Client"
             connectionString="User ID=${db.user};Password=${db.password};Data Source=${db.datasource};"/>

<object id="NHibernateSessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate21">
    <property name="DbProvider" ref="DbProvider"/>
    <property name="MappingAssemblies">
      <list>
        <value>CMS.Model</value>
      </list>
    </property>
    <property name="HibernateProperties">
      <dictionary>
        <entry key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/>
        <entry key="dialect" value="NHibernate.Dialect.OracleDialect"/>       
        <entry key="hibernate.connection.driver_class" value="NHibernate.Driver.OracleDataClientDriver"/>

数据库为Oracle11g

出错信息:Error creating context 'spring.root': Could not load type NHibernate.Dialect.OracleDialect. Possible cause: no assembly name specified.

貌似这位仁兄也没解决:http://news.cnblogs.com/q/19592/

路人 乙的主页 路人 乙 | 初学一级 | 园豆:177
提问于:2011-03-22 12:47
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册