Since https://hibernate.atlassian.net/browse/HHH-14216 will be or already was reverted, a load of an entity with a mappedBy one-to-one association will hit the database instead of the cache, when the association is null. The absence of an entry in the cache is interpreted as “not cached”. What we need though, is a cache entry that represents “nothing there”, so we don’t have to hit the database. |