Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] ReadAll queries ignores cache

Hi all,

I have a find all query like this:

@NamedQuery(name = "Department.findAll", query = "SELECT d FROM Department
d",
hints = {
   @QueryHint(name = "eclipselink.cache-usage", value =
"CheckCacheThenDatabase"),
   @QueryHint(name = "eclipselink.query-type", value = "ReadAll")
})

The query still goes to the database everytime. Does Eclipselink ignores
cache for read all?

Thanks in advance,
Mohamed




Back to the top