0 Replies Latest reply on Nov 26, 2006 6:55 PM by Mark van Leeuwen

    Unnecessary select with em.merge()

    Mark van Leeuwen Newbie

      I am evaluating ejb3 and looking at the standard case of where an entity is read from the DB in one transaction, modified, then changes saved in another transaction.

      When em.merge() is called for the detached entity, EJB3 is implicitly executing a select against the DB for that entity.

      Is there some way of preventing this unnecessary select?