[hibernate-dev] [OGM] When is AssociationKey serialized?

Gunnar Morling gunnar at hibernate.org
Mon Feb 3 05:56:29 EST 2014


Hi,

I'm wondering why org.hibernate.ogm.grid.AssociationKey implements
Serializable. When is it actually serialized?

I'm suspecting the answer is "never", as the type of the "metadata" member
is not serializable, so I'd expect a NotSerializableException to be raised.

If so, does anything speak against making AssociationKey not implement
Serializable?

Thanks,

--Gunnar


More information about the hibernate-dev mailing list