[hibernate-issues] [Hibernate-JIRA] Resolved: (METAGEN-50) Suppress Warnings

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon Jan 16 09:22:10 EST 2012


     [ http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik resolved METAGEN-50.
--------------------------------------

    Resolution: Fixed

> Suppress Warnings
> -----------------
>
>                 Key: METAGEN-50
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-50
>             Project: Hibernate Metamodel Generator
>          Issue Type: Improvement
>          Components: processor
>    Affects Versions: 1.1.1.Final
>            Reporter: Stephan Bublava
>            Assignee: Hardy Ferentschik
>            Priority: Minor
>             Fix For: 1.2.next
>
>         Attachments: hibernate-jpamodelgen-add-suppress-warnings-annotation-option.diff
>
>
> Please consider adding a @SuppressWarnings("all") annotation to the generated classes. Warnings in generated code are not helpful.
> In my case the warnings (driven by IDE settings) are caused by:
> 1) Entities marked as @Deprecated.
> 2) A custom Hibernate user type that maps a numeric SQL type into an EnumSet<T>. The generated SingularAttribute does not preserve the type of the set.

--
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