Please try this:
kryoSerializer = new Kryo() {
@Override
public Serializer<?> getDefaultSerializer( final Class type ) {
if (AbstractPersistentCollection.class.isAssignableFrom( type )) {
return new FieldSerializer( kryoSerializer, type );
}
return super.getDefaultSerializer( type );
}
}
AbstractPersistentCollection is
org.hibernate.collection.AbstractPersistentCollection.
Cheers,
Martin
> --
> You received this message because you are subscribed to the "kryo-users"
> group.
>
http://groups.google.com/group/kryo-users
> ---
> You received this message because you are subscribed to the Google
> Groups "kryo-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
kryo-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
inoio gmbh -
http://inoio.de
Schulterblatt 36, 20357 Hamburg
Amtsgericht Hamburg, HRB 123031
Geschäftsführer: Dennis Brakhane, Martin Grotzke, Ole Langbehn