Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Association javaType property not automatically resolved #1381
Test case or example project
Steps to reproduce
No exception :)
The documentation states, regarding the
Either the documentation for the
Sidenote: is there a better way to accomplish this use-case? I want to sometimes select only
Thank you, @berniegp .
As you need two unrelated objects, you may need two statements (i.e. selectAccount and selectAuthInfo).
<resultMap type="test.Account" id="accountResult"> <id property="id" column="id" /> <result property="username" column="username" /> </resultMap> <resultMap type="test.AuthInfo" id="authInfoResult"> <id column="id" /> <result property="password" column="password" /> <association property="account" resultMap="accountResult" /> </resultMap>
Thanks so much for taking the time to provide this guidance.
If you decide which option to go with, I'll be happy to help if I can with a pull request. I can either update the doc (option 1) or provide a failing test case (option 2) at the very least.