goldmansachs/reladomo

SerializationConfig doesn't preserve serializeMetaData in copy methods.

Closed this issue · 1 comments

Some of the copy methods in SerializationConfig don't copy over serializeMetaData. I worked around it by changing code like this:

        SerializationConfig serializationConfig = SerializationConfig
                .shallowWithDefaultAttributes(MyTypeFinder.getFinderInstance())
                .withoutMetaData()
                .withDeepFetches(MyTypeFinder.relatedThings());

to:

        SerializationConfig serializationConfig = SerializationConfig
                .shallowWithDefaultAttributes(MyTypeFinder.getFinderInstance())
                .withDeepFetches(MyTypeFinder.relatedThings())
                .withoutMetaData();

@motlin thanks for the report.