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

Emmanuel Bernard emmanuel at hibernate.org
Mon Feb 3 08:33:02 EST 2014


Hum, with the fact that this object now points to metadata, I wonder if
we should force EhCache, Map and Infinispan to have their own version of
EntityKey / RowKey and AssociationKey (or an appropriate externalizer).

Emmanuel

On Mon 2014-02-03 11:56, Gunnar Morling wrote:
> 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
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev


More information about the hibernate-dev mailing list