79699589

Date: 2025-07-12 21:19:21
Score: 2.5
Natty:
Report link

Use findById like this, This returns whole object not a proxy like getOne/getReferenceById

repository.findById(id).orElseThrow(() -> new ResourceNotFoundException("any message"));

Thank You !

Reasons:
  • Blacklisted phrase (0.5): Thank You
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jatin Raikwar