X-Git-Url: https://dev.e-taxonomy.eu/gitweb/cdmlib.git/blobdiff_plain/bd0bed64518fe1db29986b6fe26bc2f714104e2d..0e7c4fd1c44e03397811400f3fdd244f227a8d93:/cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/DbSchemaValidation.java
diff --git a/cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/DbSchemaValidation.java b/cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/DbSchemaValidation.java
index 73589903da..41246ac6ba 100644
--- a/cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/DbSchemaValidation.java
+++ b/cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/DbSchemaValidation.java
@@ -10,21 +10,11 @@
package eu.etaxonomy.cdm.database;
/**
- *
- * Wrapper class for the hibernate hibernate.hbm2ddl.auto
property.
- *
- * - VALIDATE will validate the existing schema and throw an exception if the schema is not compatible
- * - UPDATE will try to update the existing db schema to be compatible with the new schema
- * - CREATE works as UPDATE but also empties the needed tables
- * - CREATE-DROP works as CREATE but also drops all tables after closing the session factory (use only for
- * testing or for creating temporary database schemas)
- *
-
- * @see {@link http://docs.jboss.org/hibernate/stable/core/reference/en/html_single/#configuration-programmatic}
- *
* @author a.mueller
+ *
*/
public enum DbSchemaValidation {
+ NONE,
VALIDATE,
UPDATE,
CREATE,
@@ -33,6 +23,8 @@ public enum DbSchemaValidation {
@Override
public String toString(){
switch (this){
+ case NONE:
+ return "none"; //no effect
case VALIDATE:
return "validate";
case UPDATE: