snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Spring Data JPA - add Spring Boot Naming strategies #116

Closed snowdrop-bot closed 4 years ago

snowdrop-bot commented 4 years ago

When the one switch from Spring Data JPA project to Quarkus Spring Data JPA he should have the option to preserve the Spring Boot Naming Strategies in order application to work out of the box.

These are the needed strategies: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy and org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy

I've made copy/paste of this strategies to the project which I want to migrate (now they are in different package) then added this to the application.properties file:

quarkus.hibernate-orm.implicit-naming-strategy=org.otaibe.commons.location.orm.SpringImplicitNamingStrategy
quarkus.hibernate-orm.physical-naming-strategy=org.otaibe.commons.location.orm.SpringPhysicalNamingStrategy

Now there is not a problem with table/entity names. Let me add other related tasks here: #6978, #7420 and #7412


https://github.com/quarkusio/quarkus/issues/7432


$upstream:7432$