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

org.springframework.data.annotation.Id in quarkus-spring-data-jpa #11993

Open
alvarolop opened this issue Sep 8, 2020 · 4 comments
Open

org.springframework.data.annotation.Id in quarkus-spring-data-jpa #11993

alvarolop opened this issue Sep 8, 2020 · 4 comments
Labels
area/spring Issues relating to the Spring integration kind/enhancement New feature or request

Comments

@alvarolop
Copy link

Description
We are currently considering the migration of our set of applications from Spring Boot to Quarkus and I am estimating the effort that it would take to accomplish this migration. We are already using spring-boot-starter-data-redis and specifically this annotation org.springframework.data.annotation.Id.

I have seen that quarkus-spring-data-jpa (https://quarkus.io/guides/spring-data-jpa) already has this annotation, but the documentation explains that should be imported as javax.persistence.Id. I would like to know if these two classes are 100% compatible and if we could have the springframework version implemented in spring-boot-starter-data-redis.

Migrations of a large set of microservices that use the annotation in different ways are not viable if we have to modify many classes manually without knowing if the annotation is 100% compatible.

Thank you in advanced.

@alvarolop alvarolop added the kind/enhancement New feature or request label Sep 8, 2020
@quarkusbot
Copy link

/cc @geoand

@quarkusbot quarkusbot added the area/spring Issues relating to the Spring integration label Sep 8, 2020
@geoand
Copy link
Contributor

geoand commented Sep 9, 2020

Hi,

Thanks for reporting.

Does the application in question that uses spring-data-jpa use org.springframework.data.annotation.Id? I would like to see an example of that if possible please.

@mmmmmmpc
Copy link

mmmmmmpc commented Sep 9, 2020

Looks like a duplicate of: https://github.com/windup/windup-rulesets/pull/461/commits

@geoand
Copy link
Contributor

geoand commented Sep 14, 2020

Basically we can make this work from the Quarkus side, but Hibernate ORM doesn't know about org.springframework.data.annotation.Id, so you can't really use for JPA mappings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/spring Issues relating to the Spring integration kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants