예제 #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());
 }
예제 #2
0
 public Address update(Address address) {
   addressMapper.update(address);
   return addressMapper.get(address.getAddress_id());
 }