@ Override public ValidationMode getValidationMode ( ) { // Convert this ValidationMode from the class defined // in JAXB (com.ibm.ws.jpa.pxml20.PersistenceUnitValidationModeType) // to JPA (javax.persistence.ValidationMode). ValidationMode rtnMode = null ; PersistenceUnitValidationModeType jaxbMode = null ; jaxbMode = ivPUnit . getValidationMode ( ) ; if ( jaxbMode == PersistenceUnitValidationModeType . AUTO ) { rtnMode = ValidationMode . AUTO ; } else if ( jaxbMode == PersistenceUnitValidationModeType . CALLBACK ) { rtnMode = ValidationMode . CALLBACK ; } else if ( jaxbMode == PersistenceUnitValidationModeType . NONE ) { rtnMode = ValidationMode . NONE ; } return rtnMode ; }
Gets the value of the validationMode property .