package eu.etaxonomy.cdm.database;\r
\r
/**\r
- * \r
- * Wrapper class for the hibernate <code>hibernate.hbm2ddl.auto</code> property.<BR><BR>\r
- * <UL>\r
- * <LI>VALIDATE will validate the existing schema and throw an exception if the schema is not compatible</LI>\r
- * <LI>UPDATE will try to update the existing db schema to be compatible with the new schema</LI>\r
- * <LI>CREATE works as UPDATE but also empties the needed tables </LI>\r
- * <LI>CREATE-DROP works as CREATE but also drops all tables after closing the session factory (use only for \r
- * testing or for creating temporary database schemas)</LI>\r
- * </UL>\r
- \r
- * @see {@link http://docs.jboss.org/hibernate/stable/core/reference/en/html_single/#configuration-programmatic} \r
- * \r
* @author a.mueller\r
+ *\r
*/\r
public enum DbSchemaValidation {\r
+ NONE,\r
VALIDATE,\r
UPDATE,\r
CREATE,\r
@Override\r
public String toString(){\r
switch (this){\r
+ case NONE:\r
+ return "none"; //no effect\r
case VALIDATE:\r
return "validate";\r
case UPDATE:\r