@ -71,29 +71,29 @@ public class DbInfoServiceImpl extends AbstractService<DbInfo> implements DbInfo
 
			
		
	
		
		
			
				
					
								{ 
			{ 
 
			
		
	
		
		
			
				
					
									List < Str2Str >  tables  =  new  ArrayList < Str2Str > ( ) ; 
				List < Str2Str >  tables  =  new  ArrayList < Str2Str > ( ) ; 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " address ",  "DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " ADDRESS ",  "DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " building ",  "DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " BUILDING ",  "DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " material ",  "DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " MATERIAL ",  "DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " munit ",  "DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " MUNIT ",  "DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " orders ",  "DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " ORDERS ",  "DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " order_item ",  "DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " ORDER_ITEM ",  "DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " permission ",  "DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " PERMISSION ",  "DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " requirement ",  "DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " REQUIREMENT ",  "DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " requirementtype ",  "DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " REQUIREMENTTYPE ",  "DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " requirement_items ",  "DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " REQUIREMENT_ITEMS ",  "DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " role ",  "DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " ROLE ",  "DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " service ",  "DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " SERVICE ",  "DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " triprequirement ",  "DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " TRIPREQUIREMENT ",  "DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
					
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " material ",  "MUNIT_DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " MATERIAL ",  "MUNIT_DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " orders ",  "INVOICE_DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " ORDERS ",  "INVOICE_DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " orders ",  "DELIVERY_DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " ORDERS ",  "DELIVERY_DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " orders ",  "SUPPLIER_DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " ORDERS ",  "SUPPLIER_DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " order_item ",  "MUNIT_DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " ORDER_ITEM ",  "MUNIT_DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " requirement_items ",  "MUNIT_DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " REQUIREMENT_ITEMS ",  "MUNIT_DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " triprequirement ",  "VEHICLE_DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " TRIPREQUIREMENT ",  "VEHICLE_DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " trip_bill_items ",  "BACK_VEHICLE_DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " TRIP_BILL_ITEMS ",  "BACK_VEHICLE_DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( new  Str2Str ( " trip_bill_items ",  "VEHICLE_DESCRIPTION" ) ) ; 
				tables . add ( new  Str2Str ( " TRIP_BILL_ITEMS ",  "VEHICLE_DESCRIPTION" ) ) ; 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
									for  ( Str2Str  item  :  tables ) 
				for  ( Str2Str  item  :  tables ) 
 
			
		
	
		
		
			
				
					
									{ 
				{ 
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -107,9 +107,9 @@ public class DbInfoServiceImpl extends AbstractService<DbInfo> implements DbInfo
 
			
		
	
		
		
			
				
					
								{ 
			{ 
 
			
		
	
		
		
			
				
					
									List < String >  tables  =  new  ArrayList < String > ( ) ; 
				List < String >  tables  =  new  ArrayList < String > ( ) ; 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
									tables . add ( " material ") ; 
				tables . add ( " MATERIAL ") ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( " order_item ") ; 
				tables . add ( " ORDER_ITEM ") ; 
 
			
				
				
			
		
	
		
		
			
				
					
									tables . add ( " requirement_items ") ; 
				tables . add ( " REQUIREMENT_ITEMS ") ; 
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
									
				
 
			
		
	
		
		
			
				
					
									for  ( String  item  :  tables ) 
				for  ( String  item  :  tables ) 
 
			
		
	
		
		
			
				
					
									{ 
				{ 
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -119,6 +119,13 @@ public class DbInfoServiceImpl extends AbstractService<DbInfo> implements DbInfo
 
			
		
	
		
		
			
				
					
									} 
				} 
 
			
		
	
		
		
			
				
					
								} 
			} 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
								if  ( dbVersion  <  3 ) 
 
			
		
	
		
		
			
				
					
								{ 
 
			
		
	
		
		
			
				
					
									sql  =  "UPDATE INVOICING SET COMPLETED = false WHERE (COMPLETED Is NULL) " ; 
 
			
		
	
		
		
			
				
					
									sq  =  this . dao . getSession ( ) . createSQLQuery ( sql ) ; 
 
			
		
	
		
		
			
				
					
									sq . executeUpdate ( ) ; 
 
			
		
	
		
		
			
				
					
								} 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
								this . updateDatabaseVersion ( ) ; 
			this . updateDatabaseVersion ( ) ; 
 
			
		
	
		
		
			
				
					
							} 
		} 
 
			
		
	
		
		
			
				
					
						} 
	}