[hibernate-issues] [Hibernate-JIRA] Commented: (HV-588) Create a marker annotation for entities which should be excluded for validation

Hardy Ferentschik (JIRA) noreply at atlassian.com
Sun May 13 02:51:11 EDT 2012


    [ https://hibernate.onjira.com/browse/HV-588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46633#comment-46633 ] 

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

        


More information about the hibernate-issues mailing list