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

MyBatisBatchItemWriter supports converting a parameter #21

Closed
simonwg opened this issue Nov 9, 2013 · 1 comment
Closed

MyBatisBatchItemWriter supports converting a parameter #21

simonwg opened this issue Nov 9, 2013 · 1 comment
Assignees
Labels
enhancement Improve a feature or add a new feature
Milestone

Comments

@simonwg
Copy link

simonwg commented Nov 9, 2013

Could MyBatisBatchItemWriter supports additional parameter that is not part of the item to be written?

e.g. My target db table contains the "last updated by" field which is not part of the domain object (The object doesn't have the lastUpdatedBy property). In typical MyBatis usage, I could use @param to pass additional parameter. It would be nice if MyBatisBatchItemWriter could provide some alternatives like this.

kazuki43zoo referenced this issue in kazuki43zoo/spring Oct 25, 2017
@kazuki43zoo
Copy link
Member

Hi @simonwg , Sorry for very late reply.
I think your suggestion is useful. I will suggest a way that customizes using a Converter interface provided by Spring Framework.
See e5eda0c.

What do you think?

@kazuki43zoo kazuki43zoo self-assigned this Oct 25, 2017
kazuki43zoo referenced this issue in kazuki43zoo/spring May 4, 2018
@kazuki43zoo kazuki43zoo added this to the 2.0.0 milestone May 4, 2018
@kazuki43zoo kazuki43zoo added enhancement Improve a feature or add a new feature and removed waiting for feedback labels May 4, 2018
@kazuki43zoo kazuki43zoo changed the title MyBatisBatchItemWriter supports additional parameter to written MyBatisBatchItemWriter supports converting a parameter Jan 22, 2019
pulllock pushed a commit to pulllock/mybatis-spring that referenced this issue Oct 19, 2023
pulllock pushed a commit to pulllock/mybatis-spring that referenced this issue Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve a feature or add a new feature
Projects
None yet
Development

No branches or pull requests

2 participants