JBoss Community

update data to database

created by mbbp in Beginner's Corner - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community