Commit 5755670f authored by agaikwad's avatar agaikwad

Added validation of Primary key (Duplicate Cust code and Bank code ben )of Customer Bank.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99889 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 47578fce
...@@ -775,13 +775,13 @@ public class CustBank extends ValidatorEJB implements CustBankLocal, CustBankRem ...@@ -775,13 +775,13 @@ public class CustBank extends ValidatorEJB implements CustBankLocal, CustBankRem
countryCodeCor=rs.getString(8); countryCodeCor=rs.getString(8);
} }
bankNameCor = (bankNameCor == null) ? "" : bankNameCor.trim(); bankNameCor = (bankNameCor == null) ? "" : bankNameCor.trim();
addr1Cor = (addr1Int == null) ? "" : addr1Cor.trim(); addr1Cor = (addr1Cor == null) ? "" : addr1Cor.trim();
addr2Cor = (addr2Int == null) ? "" : addr2Cor.trim(); addr2Cor = (addr2Cor == null) ? "" : addr2Cor.trim();
addr3Cor = (addr3Int == null) ? "" : addr3Cor.trim(); addr3Cor = (addr3Cor == null) ? "" : addr3Cor.trim();
cityCor = (cityInt == null) ? "" : cityCor.trim(); cityCor = (cityCor == null) ? "" : cityCor.trim();
stateCodeCor = (stateCodeInt == null) ? "" : stateCodeCor.trim(); stateCodeCor = (stateCodeCor == null) ? "" : stateCodeCor.trim();
pinCor = (pinCor == null) ? "" : pinCor.trim(); pinCor = (pinCor == null) ? "" : pinCor.trim();
countryCodeInt = (countryCodeInt == null) ? "" : countryCodeCor.trim(); countryCodeCor = (countryCodeCor == null) ? "" : countryCodeCor.trim();
rs.close(); rs.close();
pStmt.close(); pStmt.close();
rs = null; rs = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment