Author: max.andersen(a)jboss.com
Date: 2007-08-08 15:13:05 -0400 (Wed, 08 Aug 2007)
New Revision: 2982
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/HibernateUtils.java
Log:
fix broken tablename method.
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/HibernateUtils.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/HibernateUtils.java 2007-08-08
17:11:20 UTC (rev 2981)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/HibernateUtils.java 2007-08-08
19:13:05 UTC (rev 2982)
@@ -9,9 +9,9 @@
public class HibernateUtils {
public static String getTableName(Table table) {
+ String catalog = table.getCatalog();
String schema = table.getSchema();
- String catalog = table.getCatalog();
- return (schema != null ? schema + "." : "") + (catalog != null ?
catalog + "." : "") + table.getName();
+ return (catalog != null ? catalog + "." : "") + (schema != null ?
schema + "." : "") + table.getName();
}
public static boolean isPrimaryKey(Column column){
Show replies by date