79199688

Date: 2024-11-18 11:07:38
Score: 1.5
Natty:
Report link

You can create another class for id and userId. Adding that class as an object in your Asset class and put an annotation @id for that object.

Reff: https://www.baeldung.com/spring-data-mongodb-composite-key

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