cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-1851) Generate default serialVersionUID for generated java classes to avoid eclipse warnings
Date Thu, 18 Jul 2013 13:26:48 GMT

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

Andrus Adamchik updated CAY-1851:
---------------------------------

    Description: 
Here is a discussion on this:

http://markmail.org/message/bts4mf7dsayg3b2l

I think adding the default placeholder to both subclass and superclass for CayenneDataObject
descendants is the right thing to do now. None of them have any own state by default:

   private static final long serialVersionUID = 1L;

It is trickier with ROP classes that are the descendants of PersistentObject. As superclass
state depends on their ObjEntity attributes/relationships set. I guess we'll ignore the ROP
super-classes for now and only add that to subclasses.



  was:
Here is a discussion on this:

http://markmail.org/message/bts4mf7dsayg3b2l

I think adding the default placeholder to both subclass and superclass for CayenneDataObject
descendants is the right thing to do now. None of them have any own state by default:

   private static final long serialVersionUID = 1L;

It is trickier with ROP classes that are the descendants of PersistentObject. As superclass
state depends on the DataMap. I guess we'll ignore the ROP super-classes for now and only
add that to subclasses.



    
> Generate default serialVersionUID for generated java classes to avoid eclipse warnings
> --------------------------------------------------------------------------------------
>
>                 Key: CAY-1851
>                 URL: https://issues.apache.org/jira/browse/CAY-1851
>             Project: Cayenne
>          Issue Type: Improvement
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 3.2M2
>
>
> Here is a discussion on this:
> http://markmail.org/message/bts4mf7dsayg3b2l
> I think adding the default placeholder to both subclass and superclass for CayenneDataObject
descendants is the right thing to do now. None of them have any own state by default:
>    private static final long serialVersionUID = 1L;
> It is trickier with ROP classes that are the descendants of PersistentObject. As superclass
state depends on their ObjEntity attributes/relationships set. I guess we'll ignore the ROP
super-classes for now and only add that to subclasses.

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

Mime
View raw message