You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2007/12/08 20:07:07 UTC

svn commit: r602532 - /ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java

Author: jleroux
Date: Sat Dec  8 11:07:06 2007
New Revision: 602532

URL: http://svn.apache.org/viewvc?rev=602532&view=rev
Log:
getNextSeqId requires a valid entity name (done gy hand from trunk rev. 600830)

Modified:
    ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java

Modified: ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java?rev=602532&r1=602531&r2=602532&view=diff
==============================================================================
--- ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java (original)
+++ ofbiz/branches/release4.0/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java Sat Dec  8 11:07:06 2007
@@ -131,13 +131,13 @@
         // create the root
         GenericValue root = delegator.create("TestingNode",
                 UtilMisc.toMap(
-                        "testingNodeId", delegator.getNextSeqId("testingNodeId"),
+                        "testingNodeId", delegator.getNextSeqId("testingNode"),
                         "primaryParentNodeId", GenericEntity.NULL_FIELD,
                         "description", "root")
                 );
         int level1;
         for(level1 = 0; level1 < _level1max; level1++) {
-            String nextSeqId = delegator.getNextSeqId("testingNodeId");
+            String nextSeqId = delegator.getNextSeqId("testingNode");
             GenericValue v =
                 delegator.create("TestingNode",
                     UtilMisc.toMap("testingNodeId", nextSeqId,
@@ -172,7 +172,7 @@
             GenericValue node = (GenericValue)nodeIterator.next();
             GenericValue testing = delegator.makeValue("Testing",
                     UtilMisc.toMap(
-                            "testingId", delegator.getNextSeqId("testing"),
+                            "testingId", delegator.getNextSeqId("Testing"),
                             "testingTypeId", "TEST-1"
                             )
                     );