1 Reply Latest reply on Jun 27, 2012 1:54 PM by james_sutherland

    Caching ToOne / JoinColumn relationship to readonly entities (EclipseLink)


      we're using EclipseLink (v2.3.2) and are tuning our application by using shared caches (e.g. FULL for readonly entities).
      Cache is also used for read-object queries, e.g. by using hints like "CheckCacheThenDatabase".

      But now my question:
      When we reference these entities by a OneToOne, ManyToOne or JoinColumn relationship (lazy fetch), then
      Eclipselink always performs queries on the database. It seems that no cache is used.
      How can we configure Eclipselink / the relationship to access the shared cache when navigating ToOne relationships?

      Thanks for any help.