0 Replies Latest reply on Jun 19, 2007 3:25 PM by wayne baylor

    Hibernate doesn't reflect manual change to database

    wayne baylor Apprentice

      I was messing around today and noticed that if I perform a manual INSERT into an entity table, then call

      em.createQuery("from "+MyEntity.class.getName()).getResultList()

      to get all entities, the list returned does not contain the entity I inserted manually.

      I thought it might be a caching issue, so I set the cache provider to NoCacheProvider, but I still get the same behavior.

      What's preventing Hibernate from getting the latest info from the database??