Hibernate caching not working for inverse side of one-to-one relationship
问题 I tried googling this and found a possible duplicate of the question, but I cannot preview it: https://stackoverflow.com/questions/49344593/inverse-side-one-to-one-relationship-caching-not-working Given two domain model classess: @Entity @Table(name = "object_a") @org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public class ObjectA extends AbstractEntity { private String name; @OneToOne(fetch = FetchType.EAGER) @JoinColumn(name = "object_b_id") private ObjectB