0 Replies Latest reply on Apr 29, 2008 3:09 PM by koatto

    EntityManager cache


      the query executed in the component below doesen't get updates
      to the database, just inserts and deletes.

      public class RequestQueueManager {
              private EntityManager entityManager;
              public List getRequestsList (){
                      List<CreationRequest> resultList = entityManager.createQuery("from CreationRequest").getResultList();
                      return  resultList;

      In order to have it working i had to add a entityManager.clean().
      The hibernate cache is turned off.
      What's wrong?