Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » @CacheIndex doesn't work with Criteria Query
@CacheIndex doesn't work with Criteria Query [message #1105769] Tue, 10 September 2013 04:52 Go to next message
Eclipse UserFriend
Hi,

I'm trying to use @CacheIndex to speed up query, it works well when using named query, but when using criteria query, it doesn't work since the query still hits the database.

Is there any particular configuration for criteria?

Best wishes,
Oliver
Re: @CacheIndex doesn't work with Criteria Query [message #1106010 is a reply to message #1105769] Tue, 10 September 2013 11:05 Go to previous message
Eclipse UserFriend
Criteria queries should end up creating the same native EclipseLink queries as JPQL underneath the covers. What do the queries look like, and how are you creating and executing them?

Best Regards,
Chris
Previous Topic:Optimistic Locking since 2.4x
Next Topic:Composite Primary key error - Multiple writable mappings exist for the field
Goto Forum:
  


Current Time: Wed Jul 16 13:53:36 EDT 2025

Powered by FUDForum. Page generated in 0.03648 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top