MIFOSX-1265 - added External ID on UI for Savings Account and added validation for duplicate External ID

This commit is contained in:
Binny G Sreevas
2014-08-12 10:47:58 +05:30
parent 6df0c28df6
commit 818e085d3a
@@ -126,7 +126,7 @@ public class SavingsApplicationProcessWritePlatformServiceJpaRepositoryImpl impl
throw new PlatformDataIntegrityException(errorCodeBuilder.toString(), "Savings account with accountNo " + accountNo
+ " already exists", "accountNo", accountNo);
} else if (realCause.getMessage().contains("sa_external_id_UNIQUE")) {
} else if (realCause.getMessage().contains("sa_externalid_UNIQUE")) {
final String externalId = command.stringValueOfParameterNamed("externalId");
errorCodeBuilder.append(".duplicate.externalId");