2 Replies Latest reply on Aug 28, 2002 5:32 PM by derekw

    Can't remove entity bean!

    openmind

      I am trying to remove an entity bean, i.e., a record in the database, by calling the bean's remove() method. I have tried both the remove() method in the remote interface and the remove(Object) method in the home interface, but the record is still there. Sometimes. Sometimes it does get removed from the database but most of the times it doesn't ...

      I am using MySQL as my database and CMP in my beans. I do not get any exception; on the surface everything seems to go fine, but when you look closer you realize that the record hasn't been removed from the database.

      What am I doing wrong?

      Thanks in advance!

      Kristoffer

        • 1. Re: Can't remove entity bean!
          mannu

          Have you checked your JAWS options like Create-table, remove-table, tuned-updates?
          are you sure you are well-linked to your db, i.e. you can create entity bean and in the same time and the record to your db?

          • 2. Re: Can't remove entity bean!
            derekw

            are you still having this problem? i am seeing kind of the same thing. i use the "remove" method of an entity bean's home interface to remove the bean. when i look at the actual record, the record is still there. the primary key (in my case, an Integer) is still set to the
            original key value but all the fields are NULLed out. i am using MySQL also.