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

Exception when persisting class unlisted in disciminator map #867

Closed
jmikola opened this issue May 1, 2014 · 0 comments
Closed

Exception when persisting class unlisted in disciminator map #867

jmikola opened this issue May 1, 2014 · 0 comments

Comments

@jmikola
Copy link
Member

jmikola commented May 1, 2014

For context: #788 (comment)

Behavior for 1.0 is to write the FQCN in the discriminator field if the particular class is not listed in the map (#865). This could lead to situations where the FQCN in the database is no longer relevant (e.g. classes were moved or renamed in code). That situation will likely always be possible when target document mappings are omitted, but if the user is opting into use a discriminator map, we can assume that they want all classes to be in that map. Throwing an exception would be an extra precaution.

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

No branches or pull requests

3 participants