[
https://hibernate.onjira.com/browse/HV-588?page=com.atlassian.jira.plugin...
]
Emmanuel Bernard commented on HV-588:
-------------------------------------
I wonder if a exclusion property would not be better in this case.
{code}hibernate.validation.exclude
com.acme.app.domain.core.*;com.acme.app.domain.*Entity{code}
Create a marker annotation for entities which should be excluded for
validation
-------------------------------------------------------------------------------
Key: HV-588
URL:
https://hibernate.onjira.com/browse/HV-588
Project: Hibernate Validator
Issue Type: New Feature
Components: engine
Reporter: Hardy Ferentschik
Fix For: 5.x
We could offer a marker annotation for entities (and maybe package level) to mark
entities which should be excluded from validation (eg don't have any constraints).
This can reduce metadata processing time and it can also reduce the memory consumption
(even if an entity does not contain constraints it will be in the metadata cache).
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira