Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

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

scott.stark@jboss.org

2007-07-10


Hi,

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

person.getPhones().remove(phone);
//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?

Thanks

John

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
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.