java - Is there a way to not implement Serializeble for MyBatis domain objects -
if want map sql object in mybatis, need implement serializable interface. this:
public class user implements serializable {
otherwise throws notserializableexception when try map sql results object.
is there way congigure mybatis such allows me have domain object not implementing serializable?
i found reason why mybatis needs serializable object. normally, when not use tag, works fine without implementing serializable interface.
the reason mybatis need read/write object via serialization.
this link may https://mybatis.github.io/mybatis-3/sqlmap-xml.html
Comments
Post a Comment