Hibernate cannot determine dialect

I am using hibernate 4.3.x to connect to oracle database.

However while creating mapping file it throws

"Unable to determine Dialect to use [ name = Oracle , majorVersion = 12 ]..."

which should be problem ( according to google ) in hiberante 3.x

How can i fix this? Thanks

//edit

Config properties:

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" ""> <hibernate-configuration> <session-factory> <property name="hibernate.connection.driver_class">oracle.jdbc.OracleDriver</property> <property name="hibernate.connection.url">jdbc:oracle:...</property> <property name="hibernate.connection.username">name</property> <property name="hibernate.connection.password">Passwd</property> <mapping package="Model"/> </session-factory> </hibernate-configuration> 
2

1 Answer

It seems that there is an issue with hibernate detecting Oracle 12 dialect.

Use:

<property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property> 

Oracle 10 dialect should work with Oracle 12 also.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like