0
<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

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

then you have typos on the classname or using an old hibernate version. dialect is part of hibernate framework so the class should be there
1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.