| I see what you mean about supplier. That was me trying something. Basically there is a chicken-egg thing that happens in 5.3 that I cannot fix properly as it causes some SPI incompatibilities with Hibernate OGM and others - specifically I think it is reversed who builds the CachedDomainDataAccess. So for 5.3 I had to leave this as is. At the moment, the persisters (EntityPersister and CollectionPersister) receive their CachedDomainDataAccess objects via constructor. This has the unfortunate side-affect that we cannot use the persister and all of the "finalization" work it does wrt mapping info in building these CachedDomainDataAccess objects - we have to build those first and pass them to the persister. This is something we did differently in the 6.0 version where the "persister" is the one that builds the CachedDomainDataAccess objects it needs. Long story short, I tried to use `Supplier` as a means to delay that access. But since the Supplier is accessed immediately its kind of silly. I think I just forgot to remove that. I am thinking through a "hacky" bridge fix that I need to discuss with the rest of the team... |