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

org.apache.ibatis.reflection.ReflectionException: There is no getter for property named '__frch_criterion_1' in 'class tk.mybatis.mapper.entity.Example' #32

Open
sky20086 opened this issue Aug 3, 2018 · 8 comments

Comments

@sky20086
Copy link

sky20086 commented Aug 3, 2018

Dialect.init方法中65行,没有考虑additionalParameters的情况,在有foreach循环的情况下,报错

@jacarrichan
Copy link

我也碰到这个问题了

@jacarrichan
Copy link

@sky20086 你怎么解决的?

@jacarrichan
Copy link

放弃了 ,移除了对这个插件的依赖,另外引入一框架, 害得我把所有查询方法对应的单元测试都要跑一遍

@sky20086
Copy link
Author

sky20086 commented Jan 7, 2019 via email

@succour
Copy link

succour commented Aug 14, 2019

@sky20086 能贴一下你重载的方言类代码么. 正好遇到了这个问题... 多谢

@effiu
Copy link

effiu commented Mar 16, 2020

在分页情况下使用forEach时,应该取additionalParameters中的参数

@xvyourang
Copy link

将Dialect中65行for中的内容改为
JdbcType jdbcType = parameterMapping.getJdbcType();
if (jdbcType != null) {
PropertyTokenizer prop = new PropertyTokenizer(parameterMapping.getProperty());
pageParameters.put(parameterMapping.getProperty(), wrapper.get(prop));
} else {
pageParameters.put(parameterMapping.getProperty(), parameterObject);

                }

@effiu
Copy link

effiu commented Mar 23, 2020

`for (ParameterMapping parameterMapping : parameterMappings) {
if (wrapper.hasGetter(parameterMapping.getProperty())){
PropertyTokenizer prop = new PropertyTokenizer(parameterMapping.getProperty());
pageParameters.put(parameterMapping.getProperty(),wrapper.get(prop));
} else {
pageParameters.put(parameterMapping.getProperty(),
boundSql.getAdditionalParameter(parameterMapping.getProperty()));
}

            }`

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

No branches or pull requests

5 participants