Ensure @Id is of type Long.
Refactor code.