Sorry, I didn't ask you: what Persistence implementation are you using?
The tip I sent is about TopLink. For Hibernate, there is a option too, but I don't know
exactly what should you use.
Unfortunatelly, cache management is not standardized in JPA.
AFAIK, an option is disable cache direct on Persistence.xml...
Regards,
Edson Richter
> Hi all,
>
> In order to do this:
>
> [b]Query q = em.createQuery("select O from USERS O");
> q.setHint(TopLinkQueryHints.REFRESH, HintValues.TRUE);
> return q.getResultList();[/b]
>
>
> I need to import
>
> [b]import oracle.toplink.config.HintValues;
> import oracle.toplink.config.TopLinkQueryHints;[/b]
>
> But I m not able to import these setting...please help me with these.
>
> Thanx
> [Message sent by forum member 'deepak1234' (deepak1234)]
>
> http://forums.java.net/jive/thread.jspa?messageID=216237
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>