We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Class.getDeclaredFields()
FieldHelper使用Java反射Class.getDeclaredFields()来获取特定类的字段信息
FieldHelper
Mapper/core/src/main/java/tk/mybatis/mapper/mapperhelper/FieldHelper.java
Line 183 in 5e31029
然而,官方的Javadoc提到,随着时间的推移,元素的顺序不会保持
修复程序已于2022年10月15日在[此提交](https://github.com/abel533/Mapper/pull/666/commits/70232e7c5edd63bee897873bde25efbb2d076a1a)中被合并,但在[此提交](https://github.com/abel533/Mapper/commit/79d313a7ca6cba6c5d5323746fb83ed5744180a1)中删除
我怀疑这是因为2022年10月16日测试“ComplexEntityTest.test()”中的[此更改](2fcefe65e77db1e57edb33290cd0e347ecaec8),该测试会因订购问题而失败。
由于字段已经排序,这个测试的预期值应该从
Assert.assertEquals("SELECT id,user_name,address,state FROM user " + "<where>" + "<if test=\"id != null\"> AND id = #{id}</if>" + "<if test=\"userName != null\"> AND user_name = #{userName}</if>" + "<if test=\"address != null\"> AND address = #{address, typeHandler=tk.mybatis.mapper.mapperhelper.ComplexEntityTest$AddressHandler}</if>" + "<if test=\"state != null\"> AND state = #{state}</if></where>", sql);
去
Assert.assertEquals("SELECT address,id,state,user_name FROM user " + "<where>" + "<if test=\"address != null\"> AND address = #{address, typeHandler=tk.mybatis.mapper.mapperhelper.ComplexEntityTest$AddressHandler}</if>" + "<if test=\"id != null\"> AND id = #{id}</if>" + "<if test=\"state != null\"> AND state = #{state}</if>" + "<if test=\"userName != null\"> AND user_name = #{userName}</if></where>", sql);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
FieldHelper
使用Java反射Class.getDeclaredFields()
来获取特定类的字段信息Mapper/core/src/main/java/tk/mybatis/mapper/mapperhelper/FieldHelper.java
Line 183 in 5e31029
然而,官方的Javadoc提到,随着时间的推移,元素的顺序不会保持
修复程序已于2022年10月15日在[此提交](https://github.com/abel533/Mapper/pull/666/commits/70232e7c5edd63bee897873bde25efbb2d076a1a)中被合并,但在[此提交](https://github.com/abel533/Mapper/commit/79d313a7ca6cba6c5d5323746fb83ed5744180a1)中删除
我怀疑这是因为2022年10月16日测试“ComplexEntityTest.test()”中的[此更改](2fcefe65e77db1e57edb33290cd0e347ecaec8),该测试会因订购问题而失败。
由于字段已经排序,这个测试的预期值应该从
去
Class.getDeclaredFields()
,我们在运行[NonDex](https://github.com/TestingResearchIllinois/NonDex)时可能会观察到以下错误The text was updated successfully, but these errors were encountered: