Grokbase Groups Cayenne dev June 2012

I don't pretend to understand it all, but here's how Hessian does its work:

That is using java.lang.reflect.Constructor, so is that is aware of
serialVersionUID? says that Hessian is cross-language. Which rules out Java's standard serialization anyway.

Now I'm really wondering why Cayenne is bothering with @Serializable and serialVersionUID in the first place.

If a superclass doesn't have any data involved in serialization, it doesn't need any annotation; subclasses can still be @Serializable.
The subclasses - well, they're the programmer's domain, he can add @Serializable and serialVersionUID as needed, or leave them out if unnecessary.

I don't see a use case for generating serialVersionUID or @Serializable in the first place.

(Unless I'm overlooking something. But what could that be?)

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupdev @
postedJun 15, '12 at 2:23p
activeJun 15, '12 at 2:23p

1 user in discussion

Durchholz, Joachim: 1 post



site design / logo © 2022 Grokbase