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