continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ri...@apache.org
Subject svn commit: r497959 - /maven/continuum/branches/id-refactor/continuum-data-management/src/main/java/org/apache/maven/continuum/management/JdoDataManagementTool.java
Date Fri, 19 Jan 2007 21:19:59 GMT
Author: rinku
Date: Fri Jan 19 13:19:58 2007
New Revision: 497959

URL: http://svn.apache.org/viewvc?view=rev&rev=497959
Log:
o  fixed int references in data management.

Modified:
    maven/continuum/branches/id-refactor/continuum-data-management/src/main/java/org/apache/maven/continuum/management/JdoDataManagementTool.java

Modified: maven/continuum/branches/id-refactor/continuum-data-management/src/main/java/org/apache/maven/continuum/management/JdoDataManagementTool.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/id-refactor/continuum-data-management/src/main/java/org/apache/maven/continuum/management/JdoDataManagementTool.java?view=diff&rev=497959&r1=497958&r2=497959
==============================================================================
--- maven/continuum/branches/id-refactor/continuum-data-management/src/main/java/org/apache/maven/continuum/management/JdoDataManagementTool.java
(original)
+++ maven/continuum/branches/id-refactor/continuum-data-management/src/main/java/org/apache/maven/continuum/management/JdoDataManagementTool.java
Fri Jan 19 13:19:58 2007
@@ -141,7 +141,7 @@
             Schedule schedule = (Schedule) i.next();
 
             schedule = (Schedule) PlexusJdoUtils.addObject( pmf.getPersistenceManager(),
schedule );
-            schedules.put( new Integer( schedule.getId() ), schedule );
+            schedules.put( new Long( schedule.getId() ), schedule );
         }
 
         Map installations = new HashMap();
@@ -169,7 +169,7 @@
             }
 
             profile = (Profile) PlexusJdoUtils.addObject( pmf.getPersistenceManager(), profile
);
-            profiles.put( new Integer( profile.getId() ), profile );
+            profiles.put( new Long( profile.getId() ), profile );
         }
 
         for ( Iterator i = database.getProjectGroups().iterator(); i.hasNext(); )
@@ -198,12 +198,12 @@
 
             if ( def.getSchedule() != null )
             {
-                def.setSchedule( (Schedule) schedules.get( new Integer( def.getSchedule().getId()
) ) );
+                def.setSchedule( (Schedule) schedules.get( new Long( def.getSchedule().getId()
) ) );
             }
 
             if ( def.getProfile() != null )
             {
-                def.setProfile( (Profile) profiles.get( new Integer( def.getProfile().getId()
) ) );
+                def.setProfile( (Profile) profiles.get( new Long( def.getProfile().getId()
) ) );
             }
         }
     }



Mime
View raw message