itsravi77
itsravi77
Thanks Daniel. Yes I would like to ignore whole of SessionFactory object. I did try to do it by setting the exclusion type to SessionFactoryImpl.class but it didn’t work.
It’s other way. SessionFactoryImpl is implementation of SessionFactory. I noticed in your example “objectDifferBuilder.inclusion().exclude().type(ArrayList)”, Do we need to say ArrayList.class?
Hi Daniel, I fixed the issue by adding following exclusions: ` ObjectDiffer objectDiffer = ObjectDifferBuilder.startBuilding() .inclusion().exclude().propertyName("handler").and() .inclusion().exclude().propertyName("hibernateLazyInitializer").and() .build(); ` But interestingly, now I don't see it throwing exception if I...