Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate inverse remove strategy SET_NULL against column nullability #517

Closed
beikov opened this issue Feb 20, 2018 · 0 comments · Fixed by #659
Closed

Validate inverse remove strategy SET_NULL against column nullability #517

beikov opened this issue Feb 20, 2018 · 0 comments · Fixed by #659

Comments

@beikov
Copy link
Member

beikov commented Feb 20, 2018

When having an updatable inverse collection, it might happen that the SET_NULL inverse remove strategy is used which won't work if the mapped by columns are non-nullable. This is especially problematic because SET_NULL is the default strategy. The current error a user sees is that a non-null constraint is violated which isn't very useful. This should be checked during metamodel building.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment