ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hans...@apache.org
Subject svn commit: r742842 - in /ofbiz/trunk/framework: common/script/org/ofbiz/common/PortalPageServices.xml entity/src/org/ofbiz/entity/GenericDelegator.java
Date Tue, 10 Feb 2009 04:06:35 GMT
Author: hansbak
Date: Tue Feb 10 04:06:32 2009
New Revision: 742842

URL: http://svn.apache.org/viewvc?rev=742842&view=rev
Log:
improve error message, corrected creation of a primamry key sequence

Modified:
    ofbiz/trunk/framework/common/script/org/ofbiz/common/PortalPageServices.xml
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java

Modified: ofbiz/trunk/framework/common/script/org/ofbiz/common/PortalPageServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/script/org/ofbiz/common/PortalPageServices.xml?rev=742842&r1=742841&r2=742842&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/script/org/ofbiz/common/PortalPageServices.xml (original)
+++ ofbiz/trunk/framework/common/script/org/ofbiz/common/PortalPageServices.xml Tue Feb 10
04:06:32 2009
@@ -108,7 +108,7 @@
         <make-value entity-name="PortalPage" value-field="newPortalPage"/>
         <set-pk-fields map="parameters" value-field="newPortalPage"/>
         <if-empty field="newPortalPage.portalPageId">
-            <make-next-seq-id value-field="newPortalPage" seq-field-name="portalPageId"/>
+            <sequenced-id sequence-name="PortalPage" field="newPortalPage.portalPageId"/>
         </if-empty>
         <set-nonpk-fields map="parameters" value-field="newPortalPage"/>
         <set field="newPortalPage.ownerUserLoginId" from-field="parameters.userLogin.userLoginId"/>

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java?rev=742842&r1=742841&r2=742842&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java Tue Feb 10 04:06:32
2009
@@ -3153,7 +3153,7 @@
                                 highestSeqVal = Integer.valueOf(seqVal);
                             }
                         } catch (Exception e) {
-                            Debug.logWarning("Error in make-next-seq-id converting SeqId
[" + currentSeqId + "] to a number: " + e.toString(), module);
+                            Debug.logWarning("Error in make-next-seq-id converting SeqId
[" + currentSeqId + "] in field: " + seqFieldName + " from entity: " + value.getEntityName()
+ " to a number: " + e.toString(), module);
                         }
                     }
                 }



Mime
View raw message