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

Moved makeConfigObject up to FieldConverter interface #163

Merged
merged 1 commit into from
Jan 1, 2019

Conversation

Bo98
Copy link
Collaborator

@Bo98 Bo98 commented Dec 15, 2018

makeConfigObject is what fills dataTypeConfigObj in FieldType. Looking at the use of getDataTypeConfigObj() in ORMLite's default data persisters, it is exclusively used within FieldConverter methods. Therefore, I believe it is more appropriate for the config object to be a part of the FieldConverter.

In practice this makes an important fix. Now the result of getFieldConverter() is used to create the config object. A real world scenario where this was critical is in Oracle. BooleanCharType contains a makeConfigObject but it would never be called in this scenario without the change in this pull request.

@j256
Copy link
Owner

j256 commented Jan 1, 2019

Ok. I get it and agree. Thanks much!

@j256 j256 merged commit 606986f into j256:master Jan 1, 2019
@Bo98 Bo98 deleted the makeconfigobject branch January 2, 2019 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants