[
https://hibernate.onjira.com/browse/HV-588?page=com.atlassian.jira.plugin...
]
Emmanuel Bernard commented on HV-588:
-------------------------------------
Why do you need user input for that? It can speed up initialization but once computed
once, the annotation is not providing any more info than BeanDescriptor.
isBeanConstrained().
Am I missing anything?
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