let ICdmDataSource implement javax.sql.DataSource #3910
[cdmlib.git] / cdmlib-persistence / src / main / java / eu / etaxonomy / cdm / database / DbSchemaValidation.java
index 73589903daba0a8a552ef504052fbe8606000edf..41246ac6bac0618a73e1ca08e744251c06c956fa 100644 (file)
 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
@@ -33,6 +23,8 @@ public enum DbSchemaValidation {
        @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