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

@Column方法上的typeHandler实例化未传入对应的字段类型 #14

Open
L1yp opened this issue Nov 5, 2024 · 0 comments
Open

Comments

@L1yp
Copy link

L1yp commented Nov 5, 2024

复现步骤:

    @Column(typeHandler = BasicEnumTypeHandler.class)
    private CommonStatus status;

调用BaseMapper的updateByPrimaryKeySelectiveWithForceFields方法,status传入CommonStatus.ENABLE,然后updateByPrimaryKeySelectiveWithForceFields构造的SQL中没有javaType,导致实例化typeHandler时构造函数传入了java.lang.Object.

OA4W@Z WE$X4 )S7AO2U3{9

因此需要补充javaType属性

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

No branches or pull requests

1 participant