[hibernate-issues] [Hibernate-JIRA] Updated: (METAGEN-50) Suppress Warnings
Théo Chamley (JIRA)
noreply at atlassian.com
Thu Aug 4 10:00:13 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/METAGEN-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Théo Chamley updated METAGEN-50:
--------------------------------
Attachment: hibernate-jpamodelgen-add-suppress-warnings-annotation-option.diff
Here is a patch for the 1.2.0-SNAPSHOT version of the Hibernate JPA 2 Metamodel Generator that provides an option to add the @SuppressWarnings("all") annotation to generated classes. The usage is the same than for the @Generated annotation. You have to set -AaddSuppressWarningsAnnotation=true.
Hope this helps,
--
Théo Chamley
> 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