Quarkus: SpringJPA: Support spring.jpa.show-sql

Created on 16 Dec 2019  路  6Comments  路  Source: quarkusio/quarkus

Description
From a Hackaton with Quarkus suggestions and feedbacks:
User tried to set spring.jpa.show-sql was surprised it didn鈥檛 work.

Implementation ideas
My idea is create a @ConfigRoot and @ConfigGroup classes to load this property and map it to the current quarkus.hibernate-orm.log.sql. Anyway the new spring property would be named quarkus.spring.jpa.show-sql, we cannot escape to have quarkus in the name. WDYT @geoand ?

arespring kinenhancement

All 6 comments

TBH I don't have a proper solution in my head, so I would suggest you go ahead and experiment and see what actually works best.

I think this asks a broader question: should we support the whole Spring configuration? Because once we have added one, it's weird to not support the others.

I must admit that I'm not sold to it.

I am also against adding support because it then open doors other types of Java config for Spring. Would however explore if we can detect some specific configuration options that the user might have added and perhaps propose the proper Quarkus alternatives?

Would however explore if we can detect some specific configuration options that the user might have added and perhaps propose the proper Quarkus alternatives?

That would be handy and probably relatively easy to implement.

I see #6291 was merged; should we close this one?

Definitely, thanks for catching it @Sanne

Was this page helpful?
0 / 5 - 0 ratings