MyBatis does not offer additional support to read-only columns. So, the turnaround solution is to set the read only columns with the ignoreColumn
tag and to write the queries that need that column value manually, using @Select annotations in mappers.
<table tableName="...">
...
<ignoreColumn column="<read only column>" />
...
</table>