Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
NPE in DefaultResultSetHandler when using association on composite key #1590
Database vendor and version
PostgreSQL 9.6 or H2 1.4
Steps to reproduce
The request done, as in 3.2.8-
NPE on DefaultResultSetHandler L472 with typeHandler as null
The problem seems to comes from this commit : 9d29135
Thanks for the repro, @nboissel !
In your usage,
Anyway, MyBatis should not throw NPE when unnecessary
My example is maybe confusing because I used composite key association on the same table to avoid creating a second table.
As I understand that (and used it in my project since a while), the
I used in my example the prefix child_ in the fields to make it easily understandable but I don't understand how I can map a composite key in an association without the
If its too confusing or if I'm not clear, I can make my test case bigger, using a second table to show the composite key use in a more classical way.
There is no
If it's still unclear, creating more realistic example might help make things clearer for both of us indeed. :)