[hibernate-issues] [Hibernate-JIRA] Created: (HBX-809) Quoting uppercased table names for PostgreSQL causes the reverse engineering to ignore foreign keys.

Sean Parsons (JIRA) noreply at atlassian.com
Tue Nov 7 05:47:04 EST 2006


Quoting uppercased table names for PostgreSQL causes the reverse engineering to ignore foreign keys.
----------------------------------------------------------------------------------------------------

         Key: HBX-809
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-809
     Project: Hibernate Tools
        Type: Bug

  Components: reverse-engineer  
    Versions: 3.2beta8    
    Reporter: Sean Parsons


If I override needQuote in JDBCMetaDataDialect as follows:
public boolean needQuote(String name)
{
	if (name.toLowerCase().equals(name))
	{
		return super.needQuote(name);
	}
	else
	{
		return true;
	}
}

The reverse engineering stops joining my tables through the foreign keys and instead of the classes being joined together, I just get long's in the place of the appropriate class in my case.  I tried stripping this down to just call the superclass method and that works and I've monitored the items that it is checking and the cases where it dropped into the else clause were only for the tables and once for each.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list