I have two tables, whose foreign refer to each other, I learned from one article that insert script on tables won't work without deferrable in such a scenario, but I am surprised how the same is being achieved in the spring application without deferrable on table structure.
Please refer to the links below: https://www.alibabacloud.com/blog/postgresql-deferrable-constraints-unique-primary-key-foreign-key-and-exclude_597717#:~:text=If%20a%20constraint%20is%20deferrable,the%20end%20of%20the%20transaction.