-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fixed bugs when dealing with primitives and multiple matching constructors #12
Conversation
count matching the result row column count would confuse the findConstructor algorithm of JpaResultMapper.
- Added NPE related tests for JpaResultMapper - Fixed some issues related to tests with native queries
Hi Jan, |
Fixed bugs when dealing with primitives and multiple matching constructors
Hi Jan, Ich denke wir können uns auch auf Deutsch unterhalten ☺ Vielen Dank für Deinen grossen Beitrag. Ich werde noch heute eine neue Version erstellen. Viele Grüsse aus der Schweiz Von: Jan Mosig [mailto:[email protected]] Hi there, i noticed the following issues the other day and fixed them: · If a result row column contains primitives, the findConstructor algorithm fails to find a matching constructor if the constructors do use box types or vice versa, e. g. the column contains an int but the constructor of the corresponding POJO takes an Integer. · If a result row column contains a null reference, an InvocationTargetException having an NPE set as cause might be thrown (depending on the behavior of the POJO's constructor when null arguments are passed). I straightened out the exception handling a bit so that debugging via stack trace gets easier in such situations. I did also fix a couple of minor issues in the JpaResultMapper unit test cases. Unfortunately my IDE seems to have a slightly different tab/spaces policy than yours resulting in rather large diffs. If that bothers you, I could try to change the settings and replay my changes. Regards You can view, comment on, or merge this pull request online at: Commit Summary
File Changes
Patch Links: — |
Hi there,
i noticed the following issues the other day and fixed them:
I did also fix a couple of minor issues in the JpaResultMapper unit test cases.
Unfortunately my IDE seems to have a slightly different tab/spaces policy than yours resulting in rather large diffs. If that bothers you, I could try to change the settings and replay my changes.
Regards