-->
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: Does a table exist?
PostPosted: Thu Jul 23, 2009 6:08 am 
Newbie

Joined: Fri Jul 17, 2009 4:54 am
Posts: 17
Location: Near London
My program has two possible starting pages, one if a users table exists, and one for when it doesn't. The reason for this is that if there is no user table then i need to enter the set up process to create the table and add the admin.

What is the correct procedure in hibernate to see if a table has been created yet?


Top
 Profile  
 
 Post subject: Re: Does a table exist?
PostPosted: Fri Jul 24, 2009 11:09 am 
Newbie

Joined: Fri Jul 24, 2009 11:06 am
Posts: 8
Why don't you instead look for the admin row? ie, the users table exists all the time, just look for the admin row and depending on that decide what to do.


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.