1 Reply Latest reply: Jun 27, 2012 8:54 AM by JamesSutherland RSS

    Caching ToOne / JoinColumn relationship to readonly entities (EclipseLink)

    224106
      Hi,

      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.

      Regards,
      Martin