@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()); }
@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()); }