Skip to content

Map underscore to camel case for SqlColumn objects #272

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

Closed
ghost opened this issue Oct 8, 2020 · 1 comment · Fixed by #273
Closed

Map underscore to camel case for SqlColumn objects #272

ghost opened this issue Oct 8, 2020 · 1 comment · Fixed by #273
Milestone

Comments

@ghost
Copy link

ghost commented Oct 8, 2020

When I query data with CommonSelectMapper.selectManyMappedRows() method, it can't map underscore to camel case automatically, I have to specify an alias for every cloumn, I think we can do something to improve this.

The way I can think of is to add a method like asCamelCase for SqlColumn class, which can convert the name of the column to camel case, and return a new SqlColumn object, what do you think?

@jeffgbutler
Copy link
Member

Thanks - I think this is a good idea. I'm doing some experimentation with it, then will commit something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant