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

Allow to limit allowed subtypes instead of requiring explicit definition #450

Closed
beikov opened this issue Oct 16, 2017 · 0 comments

Comments

@beikov
Copy link
Member

commented Oct 16, 2017

During some actual usage of updatable entity views with subtypes, we came to the conclusion that it's best to allow subtypes for attributes by default rather than force users to declare allowed subtypes.
We still consider the statically declared type to determine if creatable or updatable subtypes are allowed.

The general idea is, if the static type is read-only, all read-only subtypes of the declared type are allowed.
If the type is creatable or the cascades contains PERSIST, we also allow all creatable subtypes.
If the type is updatable or the cascades contains UPDATE, we also allow all updatable subtypes.
If the subtypes are declared, we only allow the given set of subtypes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.