コード例 #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());
 }