All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.guicedee.guicedpersistence.readers.hibernateproperties.HibernatePersistenceValidationMode Maven / Gradle / Ivy

Go to download

A complete JPA 2.1 implementation for Standalone or EE Implementation. Enables Multiple Persistence units with full JTA Support using BTM. Perfect for Guice implementations, test suites, and Guice enabled Web Applications or EAR Projects. Requires JDK 8

There is a newer version: 62
Show newest version
package com.guicedee.guicedpersistence.readers.hibernateproperties;

/**
 * validation-mode
 * 

* By default, Bean Validation (and Hibernate Validator) is activated. When an entity is created, updated (and optionally deleted), it is validated before being sent to the * database. The database schema generated by Hibernate also reflects the constraints declared on the entity. */ public enum HibernatePersistenceValidationMode { /** * AUTO: if Bean Validation is present in the classpath, CALLBACK and DDL are activated. */ Auto, /** * CALLBACK: entities are validated on creation, update and deletion. If no Bean Validation provider is present, an exception is raised at initialization time. */ Callback, /** * DDL: (not standard, see below) database schemas are entities are validated on creation, update and deletion. If no Bean Validation provider is present, an exception is * raised at initialization time. */ Ddl, /** * NONE: Bean Validation is not used at all */ None, ; @Override public String toString() { return name().toUpperCase(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy