This commit is contained in:
Lucio Lelii 2009-09-30 14:17:44 +00:00
parent 1810e8e70d
commit 0185c7c40e
1 changed files with 2 additions and 1 deletions

View File

@ -80,13 +80,14 @@ public class FunctionalityHandler implements ResourceHandler<KGCUBEGenericFuncti
psFunctionality.setNull(4, Types.INTEGER); psFunctionality.setNull(4, Types.INTEGER);
psFunctionality.setInt(5, 0); psFunctionality.setInt(5, 0);
psFunctionality.execute(); psFunctionality.execute();
int rootFunctionalityId=id;
id++; id++;
for (Functionality functionality: mainFunctionality.getFunctionalities()){ for (Functionality functionality: mainFunctionality.getFunctionalities()){
psFunctionality.setInt(1, id); psFunctionality.setInt(1, id);
psFunctionality.setString(2, functionality.getName()); psFunctionality.setString(2, functionality.getName());
psFunctionality.setString(3, functionality.getDescription()); psFunctionality.setString(3, functionality.getDescription());
psFunctionality.setNull(4, Types.INTEGER); psFunctionality.setInt(4, rootFunctionalityId);
psFunctionality.setInt(5, 0); psFunctionality.setInt(5, 0);
psFunctionality.execute(); psFunctionality.execute();
for (Service service: functionality.getServices()){ for (Service service: functionality.getServices()){