| 
						
						
							
								
							
						
						
					 | 
				
			
			 | 
			 | 
			
				@ -64,9 +64,13 @@ public class DbInfoServiceImpl extends AbstractService<DbInfo> implements DbInfo
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
						if (Constants.DB_VERSION > dbVersion)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
						{
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
							SQLQuery sq = null;
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
							String sql = "";
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
							if (dbVersion < 1)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
							{
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								List<Str2Str> tables = new ArrayList<Str2Str>();
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								tables.add(new Str2Str("address", "DESCRIPTION"));
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								tables.add(new Str2Str("building", "DESCRIPTION"));
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								tables.add(new Str2Str("material", "DESCRIPTION"));
 | 
			
		
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
			
			 | 
			 | 
			
				@ -90,9 +94,6 @@ public class DbInfoServiceImpl extends AbstractService<DbInfo> implements DbInfo
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								tables.add(new Str2Str("triprequirement", "VEHICLE_DESCRIPTION"));
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								tables.add(new Str2Str("trip_bill_items", "BACK_VEHICLE_DESCRIPTION"));
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								tables.add(new Str2Str("trip_bill_items", "VEHICLE_DESCRIPTION"));
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								SQLQuery sq = null;
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								String sql = "";
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								for (Str2Str item : tables)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								{
 | 
			
		
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
			
			 | 
			 | 
			
				@ -102,6 +103,22 @@ public class DbInfoServiceImpl extends AbstractService<DbInfo> implements DbInfo
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								}
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
							}
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
							if (dbVersion < 2)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
							{
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								List<String> tables = new ArrayList<String>();
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								tables.add("material");
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								tables.add("order_item");
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								tables.add("requirement_items");
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								for (String item : tables)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								{
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
									sql = "UPDATE " + item + " SET MUNIT_ID = 0 WHERE (MUNIT_ID Is NULL) ";
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
									sq = this.dao.getSession().createSQLQuery(sql);
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
									sq.executeUpdate();
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
								}
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
							}
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
							this.updateDatabaseVersion();
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
						}
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
					}
 | 
			
		
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
			
			 | 
			 | 
			
				
 
 |