Skip to content
Advertisement

Can not insert null object on One to One relation Spring boot | nested exception is .PersistentObjectException: detached entity passed to persist

This is the relation

JavaScript

And postman Object Data

JavaScript

I can not insert null value .If I give the AllOrgMstOrganizationId then no problem.But when I give it Null Then Error::org.springframework.dao.InvalidDataAccessApiUsageException: detached entity passed to persist: com.hrms.entity.com.AllOrgMst; nested exception is org.hibernate.PersistentObjectException: detached entity passed to persist: com.hrms.entity.com.AllOrgMst

Advertisement

Answer

Simple Solutions

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement