Re: Removing Serializability

damien hostin <[email protected]> Tue, 17 Feb 2009 15:13:54 +0100
Newsgroups gmane.comp.java.orm.simpleorm
Message-ID <[email protected]>
I removed seriability on the meta, and it doesn't break our application. 
But we don't directly use
serialization. Last year (or even before), a colleague try it without 
success.
As in the team nobody is comfortable with serialization we decided not 
to use it !
We though we had missed something but we didn't know what, we though 
SORM was OK but our code not !

But I use Tomcat to run our application. Tomcat tries to serialize 
session and
we sometimes put SRecordInstance in Session (not directly, but 
SRecordInstance are finally serialized).

I never saw such a deserialization working...


Now, after removing seriability I had other error. I think we should put 
all the Sorm meta transient in our SRecordInstance
as they are not serializable yet. We've got a lot a SRecordInstance ! 
... I may try on the one that raise error in console first.

I hope I helped ... !

Damien

[email protected] a écrit :
>
> Hello All,
>
> I just removed "implements Serializable" from both SRecordMeta and 
> SFieldMeta. As expected, all the unit tests passed.
>
> I strongly suspect that we should just remove them period.
>
> Could people please try this quick experiment. Just comment them out 
> and see if anything breaks (and why).
>
> Anthony
>
> Dr Anthony Berglas, [email protected] <mailto:anthony%40berglas.org> 
> Mobile: +61 4 4838 8874
> Just because it is possible to push twigs along the ground with ones nose
> does not necessarily mean that is the best way to collect firewood.
>
> 


-- 
HOSTIN Damien - Equipe R&D
Tel:+33(0)4 63 05 95 40
Société Axège
23 rue Saint Simon
63000 Clermont Ferrand
www.axege.com




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/SimpleORM/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/SimpleORM/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/