-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Schema validator doesn't support synonyms?
PostPosted: Mon Mar 17, 2008 7:54 am 
Newbie

Joined: Wed Jan 16, 2008 8:23 am
Posts: 7
Hi,

Schema validator throws the following exception whenever the given table is a synonym:

Code:
    org.hibernate.HibernateException: Missing table: MyTable

The reason for this is that when checking if a table exists, Hibernate's DatabaseMetadata only queries the following table types:

Code:
    private static final String[] TYPES = {"TABLE", "VIEW"};

However, JDBC's DatabaseMetaData also defines types like "SYNONYM" and "ALIAS":

Code:
    Typical types are "TABLE", "VIEW", "SYSTEM TABLE",
    "GLOBAL TEMPORARY",  "LOCAL TEMPORARY", "ALIAS", "SYNONYM".

Is it possible to use the validator with synonyms? If not, can I create a JIRA issue for this?

Cheers,
Peter


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 03, 2008 6:06 am 
Newbie

Joined: Wed Jan 16, 2008 8:23 am
Posts: 7
Any suggestions regarding this?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.