0 Replies Latest reply on Mar 2, 2007 6:23 PM by jlage

    EntityManager persist vs. find and cache put

    jlage

      it seems that EntityManager.persist( o ) does not put object o into EJB3EntityTreeCache. at least it does not appear if i go to the jmx console and invoke EJB3EntityTreeCache.printDetails(). however, after the first call to EntityManager.find() that returns the newly persisted objec o, that object does apper when i invoke EJB3EntityTreeCache.printDetails(). some my questions are:

      is that the expected behavior?
      does that imply that i make a trip to the db that i don't really need?

      thanks.