Martin, Not sure what you mean. "findById" is a method expression query, assuming that "id" is your primary key attribute.
John On Sun, May 29, 2016 at 1:02 PM Marvin Toll <[email protected]> wrote: > John, > > I've Googled briefly (and unsuccessfully) for this syntax; is it backed by > a specification? > > _Marvin > > -----Original Message----- > From: John D. Ament (JIRA) [mailto:[email protected]] > ------------------------------------------- > > [~am] > > I just ran a quick test. I was able to get it working using the following > syntax. Can you let me know if this fits your need within eclipselink? > > {code} > @Query(hints = {@QueryHint(name = > "javax.persistence.cache.retrieveMode", value = "BYPASS"), @QueryHint(name > = "eclipselink.refresh", value = "TRUE")} > public abstract Simple findById(Long id); {code} > > > Repository.findBy methods do not allow an override to add query hints. > > ---------------------------------------------------------------------- > > >
