Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hibernate dialect for oracle 12c

I'm using hibernate in my spring mvc project and I want to connect to oracle 12c database. I used org.hibernate.dialect.Oracle12cDialect, but, this returns me org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [org.hibernate.dialect.Oracle12cDialect] as strategy [org.hibernate.dialect.Dialect]. How can I set dialect for oracle 12c? I'm using hibernate 4.3.9.

like image 307
hamed Avatar asked Jul 29 '15 11:07

hamed


People also ask

What is hibernate dialect for Oracle?

Dialect allows Hibernate to generate SQL optimized for a particular relational database. Hibernate generates queries for the specific database based on the Dialect class. A hibernate dialect gives information to the framework of how to convert hibernate queries(HQL) into native SQL queries.

How do I get Hibernate Dialect?

SQL Dialects in Hibernate The dialect specifies the type of database used in hibernate so that hibernate generate appropriate type of SQL statements. For connecting any hibernate application with the database, it is required to provide the configuration of SQL dialect.

Which hibernate version is compatible with Oracle 19c?

To upgrade to Oracle 19c, you will need to upgrade Hibernate to version 5.4+ beforehand.


1 Answers

org.hibernate.dialect.Oracle12cDialect can be used with hibernate-core version 5.0

See: https://docs.jboss.org/hibernate/orm/5.0/javadocs/org/hibernate/dialect/Oracle12cDialect.html

like image 129
Darshna Avatar answered Oct 01 '22 12:10

Darshna