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

Emmanuel Bernard (JIRA) noreply at atlassian.com
Sun May 13 06:04:09 EDT 2012


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

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

        


More information about the hibernate-issues mailing list