Exemplo n.º 1
0
 public Address add(Address address) {
   if (address.getAddress_id() == 0) {
     addressMapper.add(address);
   } else {
     addressMapper.addNoIncrement(address);
   }
   return addressMapper.get(address.getAddress_id());
 }
Exemplo n.º 2
0
 public Address update(Address address) {
   addressMapper.update(address);
   return addressMapper.get(address.getAddress_id());
 }