Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring Data JPA - add Spring Boot Naming strategies #116

Closed
snowdrop-bot opened this issue Jun 23, 2020 · 0 comments
Closed

Spring Data JPA - add Spring Boot Naming strategies #116

snowdrop-bot opened this issue Jun 23, 2020 · 0 comments

Comments

@snowdrop-bot
Copy link
Collaborator

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: quarkusio#6978, quarkusio#7420 and quarkusio#7412


quarkusio#7432


$upstream:7432$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants