Author: doogie
Date: Sat May 12 21:20:22 2012
New Revision: 1337672
URL:
http://svn.apache.org/viewvc?rev=1337672&view=revLog:
DEPRECATION: applications/securityext: findByPrimaryKey variants
replaced with findOne
Modified:
ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/thirdparty/truition/TruitionCoReg.java
Modified: ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/thirdparty/truition/TruitionCoReg.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/thirdparty/truition/TruitionCoReg.java?rev=1337672&r1=1337671&r2=1337672&view=diff==============================================================================
--- ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/thirdparty/truition/TruitionCoReg.java (original)
+++ ofbiz/trunk/applications/securityext/src/org/ofbiz/securityext/thirdparty/truition/TruitionCoReg.java Sat May 12 21:20:22 2012
@@ -232,8 +232,8 @@ public class TruitionCoReg {
if (adVl != null) {
GenericValue addr = null;
try {
- addr = adVl.getDelegator().findByPrimaryKey("PostalAddress", UtilMisc.toMap("contactMechId",
- adVl.getString("contactMechId")));
+ addr = adVl.getDelegator().findOne("PostalAddress", UtilMisc.toMap("contactMechId",
+ adVl.getString("contactMechId")), false);
} catch (GenericEntityException e) {
Debug.logError(e, module);
}
@@ -268,8 +268,8 @@ public class TruitionCoReg {
if (phVl != null) {
GenericValue tele = null;
try {
- tele = phVl.getDelegator().findByPrimaryKey("TelecomNumber", UtilMisc.toMap("contactMechId",
- phVl.getString("contactMechId")));
+ tele = phVl.getDelegator().findOne("TelecomNumber", UtilMisc.toMap("contactMechId",
+ phVl.getString("contactMechId")), false);
} catch (GenericEntityException e) {
Debug.logError(e, module);
}