vins
vins

Reputation: 539

"derby dialect has been deprecated"

I am getting an error while I'm trying to perform simple sql transaction in hibernate. I am using hibernate 4.3, it says derby dialect has been deprecated

I tried to google and I found that I need version-specific dialect. Can you please tell me where and how can i get it?

you may want to see the error log from :

enter image description here .

Can anyone tell me what should i do ?

Upvotes: 4

Views: 4670

Answers (2)

Tomas Marik
Tomas Marik

Reputation: 4093

If you are using Spring Boot just add to your application.properties:

spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.DerbyTenSevenDialect

Upvotes: 7

Jack
Jack

Reputation: 3059

Hibernate provides specialized Dialect classes that inherit from DerbyDialect. If you check the class hierarchy, you will see that there are dialects

DerbyTenFiveDialect
DerbyTenSixDialect
DerbyTenSevenDialect

all in the same package as the DerbyDialect class. Just use the dialect according to your Derby version.

Upvotes: 3

Related Questions