Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Whether MyBatis can be mapped to enumerumered classes


May 16, 2021 MyBatis



Mybatis can map enumered classes.

Between mapping enumerge classes, Mybatis can map any object to a column of tables. T he mapping is to customize a TypeHandler, implementing setParameter() getResult() methods.

TypeHandler has two functions, one is to complete the conversion from javaType to jdbcType, and the other is to complete the conversion from jdbcType to javaType, setParameter() and getResult() setting of sql question mark placeholder parameters and getting column query results, respectively.