[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: How to Clear(Reset) database with Jboss?

PeterJ do-not-reply at jboss.com
Mon Oct 6 16:12:14 EDT 2008


Are you using Hibernate or EJB3? If so, you could set hibernate.hbm2ddl.auto to "create" or "create-drop".

If you are using JDBC directly, or EJB2.x, you will probably have to use database tools to drop the tables or the table contents. Or you could have a servlets init method fire off the JDBC request.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180660#4180660

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180660



More information about the jboss-user mailing list