Enabled caching in mybatis, and made Entities Serializable