-
Notifications
You must be signed in to change notification settings - Fork 847
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
Primary key in repository interface SpringDataUserRepository #131
Labels
Comments
You're right @julioapm |
woody35545
added a commit
to woody35545/spring-petclinic-rest
that referenced
this issue
May 28, 2024
arey
added a commit
that referenced
this issue
May 28, 2024
fix: resolve issue #131 by fixing primary key type for user entity
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When compiling the latest version in Spring STS IDE, an error is shown in interface:
@Profile("spring-data-jpa")
public interface SpringDataUserRepository extends UserRepository, Repository<User, Integer> {
}
User classe has a String as ID, but the interface is declared with Integer. Should it be String? As in:
@Profile("spring-data-jpa")
public interface SpringDataUserRepository extends UserRepository, Repository<User, String> {
}
The text was updated successfully, but these errors were encountered: