コード例 #1
0
 @Override
 public void add(CreditCardInfo creditCardInfo) throws Exception {
   jdbcTemplate.update(
       "INSERT INTO CREDIT_CARD_INFO (credit_card_number, security_code, expiration_date) "
           + "VALUES (?, ?, ?) ",
       creditCardInfo.getCreditCardNumber(),
       creditCardInfo.getSecurityCode(),
       creditCardInfo.getExpirationDate());
 }
コード例 #2
0
 @Override
 public void addUserCreditCardInfo(Long userId, CreditCardInfo creditCardInfo) throws Exception {
   jdbcTemplate.update(
       "INSERT INTO USER_CREDIT_CARD_INFO (user_id, credit_card_info_id) " + "VALUES (?, ?) ",
       userId,
       creditCardInfo.getId());
 }