79658755

Date: 2025-06-09 10:56:55
Score: 1.5
Natty:
Report link

first of all you have to provide more code snippets for better answer, ORMs work with entity, so you must fetch the corresponding entity and set on the turn object, or you can create a new object of for example Client and set the client_id on id and then set client on turn object, Hibernate works with primary key (default is id). note that annotate mandatory relations by @NotNull and also optional=false (for auto generating table by jpa) hope it helps

Reasons:
  • Whitelisted phrase (-1): hope it helps
  • No code block (0.5):
  • User mentioned (1): @NotNull
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Shervin Zadsoroor