Hey, I just got an idea. Would this work?
| @Entity
| public class Order {
| private Employee employee;
| ...
| }
|
| @Entity
| public class Employee {
| ...
| private List<Order> orders;
| ...
| @PreRemove
| public void removeRefs() {
| for (Order o : orders)
| o.setEmployee(null);
| }
| }
|
If this works, it'll be an elegant enough solution.
At least it'd save me the trouble of creating my own interceptors for this.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987639#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...