Skip to content

Conversation

@jeffgbutler
Copy link
Member

With this PR it is now possible to write a subclass for SqlColumn. This is more challenging than you might expect because many methods in SqlColumn create new instances of the class - so we need to provide a method for making new instances of the extended class. I've tried to make this as simple as possible and have provided a simple example.

Please see the JavaDoc in SqlColumn for detailed instructions, and see the test code for an example of a properly extended class.

Resolves #992

@jeffgbutler jeffgbutler added this to the 2.0.0 milestone Oct 23, 2025
@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same
when pulling 8a8e7e0 on jeffgbutler:extendible-sqlcolumn
into e716177 on mybatis:master.

@jeffgbutler jeffgbutler merged commit 6120fe7 into mybatis:master Oct 23, 2025
7 checks passed
@jeffgbutler jeffgbutler deleted the extendible-sqlcolumn branch October 23, 2025 20:55
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.

Consider making SqlColumn extensible to enable reusable MappedColumn / MappedTable / BaseMapper patterns

2 participants