creating and droping table using hibernate

hi , i am darshanI dont know how to create and drop table using hibernate.please help me out.
[114 byte] By [darshan.karlea] at [2007-11-27 8:06:28]
# 1
Explain what you mean in more detail. You may be looking for the HBM2DDL_AUTO configuration option, but it's not clear without knowing what you want to do.
dcmintera at 2007-7-12 19:49:03 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
plz help me out in HBM2DDL_AUTO and also in other techinque
darshan.karlea at 2007-7-12 19:49:03 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
No. Tell me what you want to do (and why) and I'll help you do that.
dcmintera at 2007-7-12 19:49:03 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 4
Oh, and if you use "plz" or other stupid abbreviations, I won't help you at all. I'm making an effort, so you have to too.
dcmintera at 2007-7-12 19:49:03 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 5

I am trying to insert data from XL sheet into the database. i am not creating table driectly into the oracle database. instead i am doing it through java.so that next time when the updated XL sheet comes ,i will drop old table and create new one so that i can insert updated data from XL sheet.

using normal jdbc code it is working fine.

but through hibernate i am facing problem while droping and creating table.

i was using

q= session.createSQLQuery("drop table empmaster);

q = session.createSQLQuery("create table empmaster(PFNO varchar2(8),TOKENNO varchar2(12),NAME varchar2(100),GENDER varchar2(1),DESIGNATION varchar2(3),WEEKLY_OFF varchar2(10))");

hibernate is not throwing any exception but it showing message like "it cannot create table".

correct me if i am wrong.

darshan.karlea at 2007-7-12 19:49:03 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 6
You don't have to drop the table unless you're changing its structure. If you're changing its structure, Hibernate's a poor choice. What's wrong with simply issuing a "delete from Foo" HQL update?Post the full content of the error message please.
dcmintera at 2007-7-12 19:49:03 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...