Exemplo n.º 1
0
 @Override
 public int update(Authority authority) {
   Session session = this.getSession();
   session.update(authority);
   return authority.getaId();
 }
Exemplo n.º 2
0
 @Override
 public int insert(Authority authority) {
   Session session = this.getSession();
   session.save(authority);
   return authority.getaId();
 }