[
https://hibernate.onjira.com/browse/HV-588?page=com.atlassian.jira.plugin...
]
Hardy Ferentschik commented on HV-588:
--------------------------------------
I was thinking about the case w/ several hundreds of entities. There you could safe
initialization time and you might not even have to cache anything. Of course having a
"constant" for non constraints like you suggest in HV-589 is more important.
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