persistence@glassfish.java.net

Default DDL generation mode?

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Tue, 19 Sep 2006 15:53:54 -0700

Hi Peter,

The TopLink JAP extentions page defines the default DDL generation mode as both:
http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-extensions.html#Java2DBSchemaGen

But the code in the EntityManagerFactoryProvider has anothe default:
public static final String DEFAULT_DDL_GENERATION_MODE = DDL_SQL_SCRIPT_GENERATION;

String ddlGenerationMode = (String)
getConfigPropertyAsString(DDL_GENERATION_MODE, props, DEFAULT_DDL_GENERATION_MODE);

Which one is right?

thanks,
-marina