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

使用SqlRunner.FindAll转型失败 #81

Closed
huaijinwoyu opened this issue Jan 11, 2018 · 2 comments
Closed

使用SqlRunner.FindAll转型失败 #81

huaijinwoyu opened this issue Jan 11, 2018 · 2 comments
Labels

Comments

@huaijinwoyu
Copy link

使用SqlRunner.FindAll转型失败

List<T> findAll(Entity where, Class<T> beanClass)

转型没报错,但是使用时会提示ClassCaseExcepiton 错误.

@huaijinwoyu
Copy link
Author

Cannot cast 'com.xiaoleilu.hutool.db.handler.BeanListHandler' to 'java.lang.String[]'

@looly looly added the question label Jan 11, 2018
@looly
Copy link
Member

looly commented Jan 11, 2018

List findAll(Entity where, Class beanClass) 只是针对一条数据转为Bean设立的,因此并不支持java.lang.String[]。如果需要返回String[]或者Object[],请自行实现RsHandler。

@looly looly closed this as completed Jan 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants