Re: serialVersionUID in autogenerated classes?

From: Mike Kienenberger (mkienen..mail.com)
Date: Mon Feb 13 2006 - 19:41:50 EST

  • Next message: Jeff de Vries: "Re: serialVersionUID in autogenerated classes?"

    Like Chris says, I just let them get auto-generated. You can disable
    the warning in Eclipse.

    If you want to add it to a template, this thread shows how one person
    generated them using Velocity.

    http://mail-archives.apache.org/mod_mbox/jakarta-velocity-user/200601.mbox/%3c7A47B13CD6A65B4E9722E401EEEBB34A2BF35..aladriel.intrinsica.co.uk%3e

    On 2/13/06, Jeff de Vries <jdevrie..frog.com> wrote:
    > We recently moved to Eclipse 3.1 from Eclipse 3.0, and now we get lots
    > of warnings along the lines of "class <foo> does not have a final,
    > static serialVersionUID". Apparently, this is something Java
    > Serializable needs. Fortunately, Eclipse has a fast way of setting
    > these (double-click on warning, then Ctrl-1 to have a serialVersionUID
    > generated and inserted for you).
    >
    > My question has to do with Cayenne's auto-generated classes. Is there a
    > way to have serialVersionUID's automatically generated and inserted into
    > the auto classes? If not, how are other people handling this issue?
    >
    > Thanks,
    > Jeff de Vries
    >
    >



    This archive was generated by hypermail 2.0.0 : Mon Feb 13 2006 - 19:41:52 EST