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

    EntityManager cache

    Ale Fred Newbie

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


      @Name("requestQueueManager")
      public class RequestQueueManager {
      
              @In
              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?