serialVersionUID in autogenerated classes?

From: Jeff de Vries (jdevrie..frog.com)
Date: Mon Feb 13 2006 - 19:24:43 EST

  • Next message: Cris Daniluk: "Re: serialVersionUID in autogenerated classes?"

    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:24:48 EST