© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Jpa repository generating wrong query - Java Community | Help. Code. Learn.
JC|HCL
Java Community | Help. Code. Learn.
•
3y ago
•
16 replies
XION
Jpa repository generating wrong query
when starting
:
Optional<User> optionalUser = userRepository.findByEmail(username);
Optional<User> optionalUser = userRepository.findByEmail(username);
it making query as on the first screenshot
findByEmail auto generated
it trying to use fields from all 3 entities which extended from user
Java Community | Help. Code. Learn.
Join
We are a Community full of Java developers. Connect with other devs, get help, help others and do much more!
27,733
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
JPA QueryDSL
JC|HCL
Java Community | Help. Code. Learn. / java-help
12mo ago
Is it correct sql query inside jpa repository interface method annotation?
JC|HCL
Java Community | Help. Code. Learn. / java-help
3y ago