[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-8586) Seam-gen creates domain serialized classes without serialVersionUID final attribute

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Sat Mar 19 00:08:45 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-8586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589071#comment-12589071 ] 

Max Rydahl Andersen commented on JBIDE-8586:
--------------------------------------------

just to be clear - it does not *has* to be generated; nothing breaks by this except when you communicate between two different JVM's and if you do that it has to be something else than just a single constant which users then ignore to create and thus breaks the serialization contract that way.

Eclipse has an annoying default warning for this which makes people think they *must* set it and thus set it but don't realize they then actually stated they will guarantee the serializability of the class...thus we don't create it since we can't make that promise.

> Seam-gen creates domain serialized classes without serialVersionUID final attribute
> -----------------------------------------------------------------------------------
>
>                 Key: JBIDE-8586
>                 URL: https://issues.jboss.org/browse/JBIDE-8586
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: Hibernate, Seam
>    Affects Versions: 3.2.0.Final
>         Environment: JBDS4/RHEL6
>            Reporter: Peter Larsen
>            Assignee: Dmitry Geraskov
>
> When reverse engineering a database (seamgen) the generated serialized classes generated are missing needed the serialVersionUID attribute. It has to be generated after seamgen has run.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list