YapDatabase icon indicating copy to clipboard operation
YapDatabase copied to clipboard

registerDefaultSerializer registers metadata serializer as well

Open MythicLionMan opened this issue 5 years ago • 0 comments

The YapDatabase.registerDefaultSerializer() and YapDatabase.registerDefaultDeserializer() functions both register the object serializer/deserializer and the metadata serializer/deserializer despite the fact that the documentation states that they only register the object serializer/deserializer.

I'm not sure what the best behaviour would be. Existing code may depend on this functionality, so perhaps the documentation should just be updated to reflect reality. But there is no way to set (or clear) the default metadata serializer/deserializer.

For us the workaround is to not use the default and just explicitly configure the serializer/deserializer for each collection.

MythicLionMan avatar Jul 15 '20 22:07 MythicLionMan