I have a complex entity with various nested levels of child entities.
Entity A contains a List of Entity B and Entity B contains a List of Entity C. When updating Entity A I get a PSQL Exception because hibernate does not pass the id of Entity B when Updating Entity C (database requires a value). With sql logging I see that it is indeed null.
Before calling Spring’s JPA
save I put a breakpoint and verified that Entity C does have an instance of Entity B and Entity B does contain an id.
Any help would be greatly appreciated.