[jboss-cvs] jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/nature ...

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


  User: mandersen
  Date: 06/11/27 10:29:08

  Modified:    hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/nature 
                        HibernateNature.java
  Log:
  Reverse engineering is now using the underlying configuration more consistently - allow 100% persistence.xml based configuration.
  
  Revision  Changes    Path
  1.9       +4 -1      jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/nature/HibernateNature.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: HibernateNature.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/nature/HibernateNature.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- HibernateNature.java	7 Jul 2006 13:51:12 -0000	1.8
  +++ HibernateNature.java	27 Nov 2006 15:29:08 -0000	1.9
  @@ -41,6 +41,7 @@
   import org.eclipse.core.runtime.preferences.IScopeContext;
   import org.eclipse.jdt.core.IJavaProject;
   import org.eclipse.jdt.core.JavaCore;
  +import org.hibernate.cfg.Configuration;
   import org.hibernate.cfg.JDBCMetaDataConfiguration;
   import org.hibernate.cfg.reveng.TableIdentifier;
   import org.hibernate.console.ConsoleConfiguration;
  @@ -146,7 +147,9 @@
   		}
   		
   		protected IStatus run(IProgressMonitor monitor) {
  -			final JDBCMetaDataConfiguration jcfg = (JDBCMetaDataConfiguration) ccfg.buildWith(new JDBCMetaDataConfiguration(), false);
  +			Configuration cfg = ccfg.buildWith(null, false);
  +			final JDBCMetaDataConfiguration jcfg = new JDBCMetaDataConfiguration();
  +			jcfg.setProperties(cfg.getProperties());
   			monitor.beginTask("Reading database metadata", IProgressMonitor.UNKNOWN);
   			try {
   				ccfg.execute(new Command() {
  
  
  



More information about the jboss-cvs-commits mailing list