You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2013/07/18 15:48:48 UTC

[jira] [Reopened] (CAY-1622) Generated classes shouldn't produce serialVersionUID compiler warning

     [ https://issues.apache.org/jira/browse/CAY-1622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrus Adamchik reopened CAY-1622:
----------------------------------

    
> Generated classes shouldn't produce serialVersionUID compiler warning
> ---------------------------------------------------------------------
>
>                 Key: CAY-1622
>                 URL: https://issues.apache.org/jira/browse/CAY-1622
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.0
>            Reporter: Bob Harner
>            Priority: Minor
>         Attachments: serial-version-uid.patch
>
>
> It is probably a good idea for Cayenne not to produce any compiler warnings, but auto-generated entity classes always have the "The serializable class _Foo does not declare a static final serialVersionUID field of type long" compiler warning.  
> The @SuppressWarnings("serial") annotation will get rid of the warnings, but of course it is not recommended to manually update the generated  classes.
> Users could configure the IDE to ignore these warnings (yuk), but then other team members will still see them.
> Another option is to for users to set up a custom velocity template to include this annotation.
> But the best solution would be for Cayenne to either automatically generate either the serialVersionUID itself or the @SuppressWarnings("serial") annotation that suppresses the compiler warning.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira