1 Reply Latest reply: Apr 30, 2012 9:28 AM by Peter Johnson RSS

    update data to database

    mbbp Newbie

      Hello guys I need your help. My problem is here :

       

           public News merge(News detachedInstance) {
                 log.debug("merging News instance");
                 try {
                      News result = entityManager.merge(detachedInstance);
                      log.debug("merge successful");
                      return result;
                 } catch (RuntimeException re) {
            log.error("merge failed", re);
            throw re;
            }
            }

      Error is : Caused by Java.lang

                at News.merge(253) etc