3 Replies Latest reply on Apr 16, 2002 8:34 AM by Marcel

    CMR not working anymore?

    Marcel Newbie

      I've got an application that used to work with CMR, but when I updated JBoss to the latest CVS HEAD it stopped doing CMR. The problem is that when I do a set...() on a CMR field to relate two entity beans the code runs but no SQL statement is generated, so when I try to retrieve the related entity bean later on, it returns NULL instead of the related entitybean. This code has been working for the last 3 months.

      I can provide more info when needed (even a testcase, although I would have to extract that from my application).

        • 1. Re: CMR not working anymore?
          HunterHillegas Newbie

          What version were you running before you updated HEAD? Alpha used different naming for CMR column names and if you don't specify them explicitly in jbosscmp-jdbc.xml and then upgrade from alpha, CMR lookups will fail.

          If that's not the case, I have no trouble with CMR on head as of today.

          • 2. Re: CMR not working anymore?
            Marcel Newbie

            I used beta1 before. I think this might be related to bug #544437. I will look into the bug to see if the behaviour is the same.

            • 3. Re: CMR not working anymore?
              Marcel Newbie

              The behaviour in the mentioned bug looks like the problem I have, but my problem disappears when using commit option A (the SQL is generated, so it's not a caching thing going on). On the other hand, I can't seem to reproduce that behaviour (the disappearance of the bug) with the bugreport testcase and commit-option A.