[jboss-cvs] jbosside/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors ...

Max Rydahl Andersen mandersen at jboss.com
Mon Nov 27 10:30:27 EST 2006


  User: mandersen
  Date: 06/11/27 10:30:27

  Modified:    hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors 
                        ReverseEngineeringEditor.java
  Log:
  Reverse engineering is now using the underlying configuration more consistently - allow 100% persistence.xml based configuration.
  
  Revision  Changes    Path
  1.18      +7 -7      jbosside/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/ReverseEngineeringEditor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReverseEngineeringEditor.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/editors/ReverseEngineeringEditor.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -b -r1.17 -r1.18
  --- ReverseEngineeringEditor.java	7 Jul 2006 13:50:52 -0000	1.17
  +++ ReverseEngineeringEditor.java	27 Nov 2006 15:30:27 -0000	1.18
  @@ -179,7 +179,7 @@
   				return null;
   			}
   			ITableFilter[] tableFilters = getReverseEngineeringDefinition().getTableFilters();
  -			Configuration cfg = configuration.buildWith(new Configuration(), false);
  +			Configuration cfg = configuration.buildWith(null, false);
   			Settings settings = configuration.getSettings(cfg);
   			
   			OverrideRepository repository = new OverrideRepository();///*settings.getDefaultCatalogName(),settings.getDefaultSchemaName()*/);
  @@ -208,12 +208,12 @@
   					return null;
   				}
   			}
  -			if(!hasIncludes && tableFilters.length>0) {
  -				boolean b = MessageDialog.openQuestion(getContainer().getShell(), "Only exclude filters defined", "Only exclude filters has been defined.\n This will result in no tables being read from the database schema.\n Do you wish to continue reading the database schema ?");
  -				if(!b) {
  -					return null;
  -				}
  -			}
  +			//if(!hasIncludes && tableFilters.length>0) { // not true anymore since it is converted to a include everything...
  +				//boolean b = MessageDialog.openQuestion(getContainer().getShell(), "Only exclude filters defined", "Only exclude filters has been defined.\n This will result in no tables being read from the database schema.\n Do you wish to continue reading the database schema ?");
  +				//if(!b) {
  +				//	return null;
  +				//}
  +			//}
   			
   			LazyDatabaseSchema lazyDatabaseSchema = new LazyDatabaseSchema(configuration, repository.getReverseEngineeringStrategy(new DefaultReverseEngineeringStrategy()));
   			
  
  
  



More information about the jboss-cvs-commits mailing list