Reputation: 95
<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
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
Reputation: 1658
wrong class name in your xml: org.hibernate.dialect.Oracle10gDialect
Upvotes: 1