[jboss-user] [EJB 3.0] - what can be done for not real remove

john_woo@canada.com do-not-reply at jboss.com
Tue Jul 10 13:58:14 EDT 2007


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?



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062611#4062611

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062611

More information about the jboss-user mailing list