Java.sql.batchupdateexception ora-01400 cannot insert null into hibernate
Now we have to revert the operation for later steps. Remove NOT NULL constraint from the Column You can either disable the constraint or drop it, but the drawback is that you have to change the definition of the table, the data integrity may be compromised.
Disable the constraint Let's check which constraint should be disabled from the column. Check the status again. No matter you disable or drop it, you can insert the row now. Ed Chen August 21, at am. It will be fine. I have the following collection on the Enquiry object:. Caused by: java. So Hibernate is obviously persisting the collection of elements before the parent enquiry and then going back and doing an UPDATE on the foreign key field afterwards. How are we doing?
Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 11 years ago. Active 10 years, 8 months ago. How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. ORA cannot insert null error in one to one relationship Ask Question. Asked 10 years, 5 months ago. Active 16 days ago. Viewed 11k times.
0コメント