when adding data in ssh framework, the exception thrown cannot be caught
access class DAO
public Integer addDbodler(Dbodler dbodler) {
try {
super.save(dbodler);
return 1;
} catch (Exception e) {
return 0;
}
}
implementation class BIZ
public boolean isAdd(Dbodler dbodler) {
// TODO
if (dbodlerDao.addDbodler(dbodler)>0) {
return true;
}
return false;
}