-->
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.  [ 1 post ] 
Author Message
 Post subject: Checking for existance of tables
PostPosted: Mon Jul 20, 2009 11:20 am 
Newbie

Joined: Fri Jul 17, 2009 4:54 am
Posts: 17
Location: Near London
I need my database to see if a 'table' exists so i know if anything has been stored there or not. As if not i can assume it is a new instalition and run the set up process, and if it is then they get to carry on as normal.

However if i try to select something from a non existant table i get an error

Code:
Exception in thread "AWT-EventQueue-0" org.hibernate.hql.ast.QuerySyntaxException: Users is not mapped [from Users]


What is the correct method of testing if a table exists so i know if there are any users there or not.

Thank you.


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

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.