0 Replies Latest reply on Jul 24, 2008 4:48 AM by holan

    hibernate Transaction in seam

    holan

      I use jboss-tools 2.0 to generate a pojo project,and do this:



      public String insert(){
                      entityManager.persist(sys);
                      System.out.println("-----------------------");
                      System.out.println(entityManager.getFlushMode());
                      return "self";
      }




      i have read hibernate in action.and it says that hibernate will do the insert just right at the commit() or the flush() or the sql select statement.
      But in my method,why hibernate print out the sql insert statement before the console print --------------------
      i think it should do the insert after the console print the ------------------------;
      by the way ,the console print out the flushMode which is AUTO;
      thank for your reply.