eswara
eswara

Reputation: 95

i have added dialect in hibernate properties but why i am getting "Dialect class not found: org.hibernate.dialect.oracl11gDialect"exception

<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
    <property name="dataSource" ref="dataSource"></property>
    <property name="annotatedClasses">
    <list>
    <value>com.org.springsApps.Student</value>
    </list>
    </property>
    <property name="hibernateProperties">   
    <props>
    <prop key="hibernate.dialect">org.hibernate.dialect.oracl11gDialect</prop>
    </props>
    </property>
    </bean>

i have added dialect name in xml file but it's asking again for dialect

Upvotes: 0

Views: 509

Answers (2)

Brent Worden
Brent Worden

Reputation: 10994

hibernate.dialect setting needs to be a classname for a org.hibernate.dialect.Dialect subclass. Hibernate comes bundled with several dialects for some common RDBMS.

If your target database is Oracle 11g, then use org.hibernate.dialect.Oracle10gDialect as the setting value, per the table.

Upvotes: 1

albert_nil
albert_nil

Reputation: 1658

wrong class name in your xml: org.hibernate.dialect.Oracle10gDialect

Upvotes: 1

Related Questions