[jboss-user] [EJB 3.0 Users] - Re: Will EJB delete tables automatically

Wolfgang Knauf do-not-reply at jboss.com
Wed Nov 11 04:56:54 EST 2009


Hi,

this is the default behavior, which is declared in "persistence.xml":

	<?xml version="1.0" encoding="UTF-8"?>
  | 	<persistence xmlns="http://java.sun.com/xml/ns/persistence"
  | 		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  | 		xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
  | 		version="1.0">
  | 		<persistence-unit name="myPersistenceUnit">
  | 			<jta-data-source>java:/DefaultDS</jta-data-source>
  | 			<properties>
  | 				<property name="hibernate.hbm2ddl.auto" value="create-drop" />
  | 			</properties>
  | 		</persistence-unit>
  | 	</persistence> 
  | 
See here (last table in the chapter) for other values: http://docs.jboss.org/hibernate/core/3.3/reference/en/html/session-configuration.html#configuration-optional

Best regards

Wolfgang

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

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



More information about the jboss-user mailing list