Skip to content

Not support org.apache.ibatis.type.EnumOrdinalTypeHandler #385

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
xunyao4dev opened this issue Jul 28, 2021 · 1 comment · Fixed by #386
Closed

Not support org.apache.ibatis.type.EnumOrdinalTypeHandler #385

xunyao4dev opened this issue Jul 28, 2021 · 1 comment · Fixed by #386

Comments

@xunyao4dev
Copy link

xunyao4dev commented Jul 28, 2021

SqlColumn.java

    protected String name;
    protected SqlTable table;
    protected JDBCType jdbcType;
    protected boolean isDescending;
    protected String alias;
    protected String typeHandler;

I think there should be a field named 'javaType'.
With this field, a sql generated will be 'select col1, col2 where col3=#{parameters.p1,jdbcType=CHAR,typeHandler=org.apache.ibatis.type.EnumOrdinalTypeHandler,javaType=com.example.MyEnum.class}', if this field does not exist, we cannot use EnumOrdinalTypeHandler directly.

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