| Joined: Sat Feb 05, 2011 11:27 am
 Posts: 14
 | 
				
					| I have a REST service that uses Hibernate to persist/retrieve its data. On the front end the service produces and consumes XML.
 I have this scenario:
 
 @Entity
 public class A{
 private long id;
 @OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
 @Cascade({CascadeType.ALL})
 private List<B> list = new ArrayList();
 
 }
 
 @Entity
 public class B{
 private long id;
 private String name;
 ...
 ...
 }
 
 On the client I get a object A with the list of objects of type B. But if in the client I remove an object on the server this modify is not persisted. I think that Hibernate don't have the entire graph of my object because Jersey rebuild it from XML.
 
 How I can resolve this problem?
 
 Thanks
 
 
 |  |