I wark on spring rest API project where I have to insert Model and this model has realtion with other table (one-to-many) and I am using jdbcTemaple for some resons.
The api client send json object and it have list of the reated object.
How I can Insert this object in DB.
for eaxample client send this DTO:
{
 "name": "Join"
 "courses: [
  {
   "id" : 1,
   "courseName":"Phisics"
  },
 {
  "id" : 2,
  "courseName":"Chemistry"
 }
]