Skip to content

Add Ability to configure a mapped Java property in an SqlColumn #969

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

Merged
merged 6 commits into from
Aug 11, 2025

Conversation

jeffgbutler
Copy link
Member

This also allows us to create new mapping types for the record based inserts that will reduce the required boilerplate code.

Resolves #964

We added a "javaProperty" to SqlColumn so properties can be centrally configured, and then used on generated insert statements.

 This will make the mappers generated from MyBatis Generator less verbose.
@jeffgbutler jeffgbutler added this to the 2.0.0 milestone Aug 11, 2025
@jeffgbutler jeffgbutler merged commit 7341365 into mybatis:master Aug 11, 2025
7 checks passed
@jeffgbutler jeffgbutler deleted the gh-964 branch August 11, 2025 15:20
@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same
when pulling 997a11b on jeffgbutler:gh-964
into b0e1d19 on mybatis:master.

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

Successfully merging this pull request may close these issues.

Provide unified Column supporting both database column and entity property mapping in Dynamic SQL
2 participants