You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2007/12/04 09:16:37 UTC

svn commit: r600830 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java

Author: lektran
Date: Tue Dec  4 00:16:36 2007
New Revision: 600830

URL: http://svn.apache.org/viewvc?rev=600830&view=rev
Log:
getNextSeqId requires a valid entity name

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java?rev=600830&r1=600829&r2=600830&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java Tue Dec  4 00:16:36 2007
@@ -130,13 +130,13 @@
 
         // create the root
         GenericValue root = delegator.create("TestingNode",
-                        "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",
                     "testingNodeId", nextSeqId,
@@ -168,7 +168,7 @@
 
         for (GenericValue node: nodeLevel1) {
             GenericValue testing = delegator.makeValue("Testing",
-                            "testingId", delegator.getNextSeqId("testing"),
+                            "testingId", delegator.getNextSeqId("Testing"),
                             "testingTypeId", "TEST-1"
                     );
             testing.put("testingName", "leaf-#" + node.getString("testingNodeId"));



Re: svn commit: r600830 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java

Posted by Jacques Le Roux <ja...@les7arts.com>.
Can't merge this one to release4.0 will do it by hand later... (actually a reminder for myself ;o)

Jacques


> Author: lektran
> Date: Tue Dec  4 00:16:36 2007
> New Revision: 600830
>
> URL: http://svn.apache.org/viewvc?rev=600830&view=rev
> Log:
> getNextSeqId requires a valid entity name
>
> Modified:
>     ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java
>
> Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java
> URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java?rev=600830&r1=600829&r2=600830&view=diff
> ==============================================================================
> --- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java (original)
> +++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java Tue Dec  4 00:16:36 2007
> @@ -130,13 +130,13 @@
>
>          // create the root
>          GenericValue root = delegator.create("TestingNode",
> -                        "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",
>                      "testingNodeId", nextSeqId,
> @@ -168,7 +168,7 @@
>
>          for (GenericValue node: nodeLevel1) {
>              GenericValue testing = delegator.makeValue("Testing",
> -                            "testingId", delegator.getNextSeqId("testing"),
> +                            "testingId", delegator.getNextSeqId("Testing"),
>                              "testingTypeId", "TEST-1"
>                      );
>              testing.put("testingName", "leaf-#" + node.getString("testingNodeId"));
>
>