[hibernate-commits] Hibernate SVN: r20308 - tools/trunk/src/java/org/hibernate/cfg/reveng.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Fri Sep 3 08:39:23 EDT 2010


Author: dgeraskov
Date: 2010-09-03 08:39:22 -0400 (Fri, 03 Sep 2010)
New Revision: 20308

Modified:
   tools/trunk/src/java/org/hibernate/cfg/reveng/JDBCReader.java
Log:
https://jira.jboss.org/browse/JBIDE-6351
Table type considered as case insensitive

Modified: tools/trunk/src/java/org/hibernate/cfg/reveng/JDBCReader.java
===================================================================
--- tools/trunk/src/java/org/hibernate/cfg/reveng/JDBCReader.java	2010-09-03 06:55:53 UTC (rev 20307)
+++ tools/trunk/src/java/org/hibernate/cfg/reveng/JDBCReader.java	2010-09-03 12:39:22 UTC (rev 20308)
@@ -536,7 +536,7 @@
 				  log.debug("Ignoring " + tableName + " since it has already been processed");
 				  continue;
 			  } else {
-				  if ( ("TABLE".equals(tableType) || "VIEW".equals(tableType) /*|| "SYNONYM".equals(tableType) */) ) { //||
+				  if ( ("TABLE".equalsIgnoreCase(tableType) || "VIEW".equalsIgnoreCase(tableType) /*|| "SYNONYM".equals(tableType) */) ) { //||
 					  // ("SYNONYM".equals(tableType) && isOracle() ) ) { // only on oracle ? TODO: HBX-218
 					  // it's a regular table or a synonym
 					  
@@ -551,7 +551,7 @@
 					  progress.startSubTask("Found " + tableName);
 					  Table table = dbs.addTable(quote(getSchemaForModel(schemaName)), getCatalogForModel(catalogName), quote(tableName));
 					  table.setComment(comment);
-					  if(tableType.equals("TABLE")) {
+					  if(tableType.equalsIgnoreCase("TABLE")) {
 						  hasIndices.add(table);
 					  }
 					  processedTables.add( table );



More information about the hibernate-commits mailing list