2 Replies Latest reply on Mar 14, 2008 7:30 AM by jebberwocky.jeffliu.potix.com

    Question about Seam Hotel Booking Demo

    jebberwocky.jeffliu.potix.com

      Hello everyone


      In the org.jboss.seam.example.jpa.ChangePasswordAction.java:



       public void changePassword()
         {
            if ( user.getPassword().equals(verify) )
            {
               user = em.merge(user);
               FacesMessages.instance().add("Password updated");
               changed = true;
            }
            else 
            {
               FacesMessages.instance().add("verify", "Re-enter new password");
               revertUser();
               verify=null;
            }
         }



      From the above about the the entity is modified, my question is where the tx.commit() takes place?


      Does Seam take care this?


      Thank you