4 Replies Latest reply on Jul 11, 2007 11:42 AM by wayne baylor

    what can be done for not real remove

    John Woo Newbie


      A person bean can have a set of phone beans. To delete a phone, code can be

      //no entityManager.remove(phone);

      But how about if we don't want to delete the record from table, we just want that person doesn't have that phone.

      How does jboss 4.2 deal with such case?

      possible to introduce extra field indication whether or not the record is active, if it's not, jboss consider it not existed, but keeps the record's primary key preserved?