79319179

Date: 2024-12-31 04:46:06
Score: 1
Natty:
Report link

JPQL does not support the SELECT * syntax or raw table names. It operates on entity classes and their fields, not on raw database tables. Here is how u can fix it:-

private static final String FIND_USER_BY_NAME = "SELECT u FROM User u WHERE u.userName = :userName";

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nandini Sahu