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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -