glassfish « Delete « JPA Q&A





1. JPA missing hibernate's "delete-orhpan" cascading type    java.net

I believe this feature is really crucial, without it i can not modify a detached entity in case modification may result in some related entitty deletion (please correct me if i am wrong). Idea of rich domain model is negated - businness methods which could delete any entity (fairly obvious case) need reference of EntityManager. It seems to me JPA is ...

2. Cascade delete problem, JPA    java.net

I have a problem with cascading delete. I have two enteties, A and B. One instance of A can have several instances of B in a Collection. The two enteties are joined with a join table that have two columns, the PK from the table of A and B. B is not aware of the relation. This is the source code: ...