0 Replies Latest reply on Nov 9, 2008 12:39 PM by dan dan

    encapsulating the Persist in a POJO

    dan dan Newbie

      Hi all,
      I was thinking of encapsulating the Persist operation in a POJO. for example:
      class MyEnt{

      public void myPersist()
      {
      entityManager.persist(this);
      }

      Is it reasonable?
      Thanks
      Dyahav