[jboss-user] [Beginner's Corner] - update data to database

mbbp do-not-reply at jboss.com
Mon Apr 30 02:40:49 EDT 2012

mbbp [https://community.jboss.org/people/mbbp] created the discussion

"update data to database"

To view the discussion, visit: https://community.jboss.org/message/732908#732908

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120430/2e2fa771/attachment.html 

More information about the jboss-user mailing list