[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-502) Cannot fully disable integration with Hibernate Validator
Jacek Chleborowicz (JIRA)
noreply at atlassian.com
Mon Dec 4 04:47:04 EST 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-502?page=comments#action_25543 ]
Jacek Chleborowicz commented on ANN-502:
----------------------------------------
I use Hibernate Validator for custom application-level validation - this validation it isn't connected with persistence.
I don't want to use integration with Hiberante Validator and therefore i want to fully disable it.
> Cannot fully disable integration with Hibernate Validator
> ---------------------------------------------------------
>
> Key: ANN-502
> URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-502
> Project: Hibernate Annotations
> Type: Improvement
> Components: validator
> Versions: 3.2.0.cr2
> Reporter: Jacek Chleborowicz
> Priority: Minor
>
>
> I use Hibernate Validator for application-level validation.
> I disabled pre-insert and pre-update event listeners from Hibernate Validator.
> I allow persisting data, which doesn't match validation rules defined by Hibernate Validator annotations.
> Unfortunately Hibernate Validator is used in metamodel construction and i cannot disable it.
> For example, if i use @NotNull annotation, i've got: PropertyValueException with message "not-null property references a null or transient value: ...", because @NotNull annotation is recognized in metamodel construction.
> There should be configuration property defining if Hibernate integrates with Hibernate Validator. It should enable/disable:
> - usage of Hibernate Validator in metamodel construction;
> - registration of Validator event listeners.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list