killbill-memoizeit
Changes
currency/pom.xml 2(+1 -1)
Details
currency/pom.xml 2(+1 -1)
diff --git a/currency/pom.xml b/currency/pom.xml
index f328c2a..64a576e 100644
--- a/currency/pom.xml
+++ b/currency/pom.xml
@@ -19,7 +19,7 @@
<parent>
<artifactId>killbill</artifactId>
<groupId>com.ning.billing</groupId>
- <version>0.7.2-SNAPSHOT</version>
+ <version>0.7.3-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
diff --git a/payment/src/main/java/com/ning/billing/payment/dao/PaymentAttemptModelDao.java b/payment/src/main/java/com/ning/billing/payment/dao/PaymentAttemptModelDao.java
index d1c8504..058288c 100644
--- a/payment/src/main/java/com/ning/billing/payment/dao/PaymentAttemptModelDao.java
+++ b/payment/src/main/java/com/ning/billing/payment/dao/PaymentAttemptModelDao.java
@@ -49,7 +49,7 @@ public class PaymentAttemptModelDao extends EntityBase implements EntityModelDao
final UUID accountId, final UUID invoiceId,
final UUID paymentId, final UUID paymentMethodId,
final PaymentStatus processingStatus, final DateTime effectiveDate,
- final BigDecimal requestedAmount, Currency requestedCurrency,
+ final BigDecimal requestedAmount, final Currency requestedCurrency,
final String gatewayErrorCode, final String gatewayErrorMsg) {
super(id, createdDate, updatedDate);
this.accountId = accountId;
diff --git a/payment/src/main/resources/com/ning/billing/payment/dao/PaymentAttemptSqlDao.sql.stg b/payment/src/main/resources/com/ning/billing/payment/dao/PaymentAttemptSqlDao.sql.stg
index 071968b..15c73bb 100644
--- a/payment/src/main/resources/com/ning/billing/payment/dao/PaymentAttemptSqlDao.sql.stg
+++ b/payment/src/main/resources/com/ning/billing/payment/dao/PaymentAttemptSqlDao.sql.stg
@@ -7,6 +7,7 @@ tableFields(prefix) ::= <<
, <prefix>gateway_error_msg
, <prefix>processing_status
, <prefix>requested_amount
+, <prefix>requested_currency
, <prefix>created_by
, <prefix>created_date
, <prefix>updated_by
@@ -20,6 +21,7 @@ tableValues() ::= <<
, :gatewayErrorMsg
, :processingStatus
, :requestedAmount
+, :requestedCurrency
, :createdBy
, :createdDate
, :updatedBy
diff --git a/payment/src/main/resources/com/ning/billing/payment/ddl.sql b/payment/src/main/resources/com/ning/billing/payment/ddl.sql
index 37f5a12..ad2ee70 100644
--- a/payment/src/main/resources/com/ning/billing/payment/ddl.sql
+++ b/payment/src/main/resources/com/ning/billing/payment/ddl.sql
@@ -64,7 +64,7 @@ CREATE TABLE payment_attempts (
gateway_error_msg varchar(256),
processing_status varchar(50),
requested_amount numeric(10,4),
- requested_currency numeric(10,4),
+ requested_currency char(3),
created_by varchar(50) NOT NULL,
created_date datetime NOT NULL,
updated_by varchar(50) NOT NULL,
@@ -88,7 +88,7 @@ CREATE TABLE payment_attempt_history (
gateway_error_msg varchar(256),
processing_status varchar(50),
requested_amount numeric(10,4),
- requested_currency numeric(10,4),
+ requested_currency char(3),
change_type char(6) NOT NULL,
created_by varchar(50) NOT NULL,
created_date datetime NOT NULL,