An application has two entities, parson and Address.
The application calls the DeletePersonsByStatus named query.
Which of the following is true?
A.
The person entities are removed, but NOT their related address entities.
B.
The person entities, and all their related address entities, are removed.
C.
The DeletePersonsByStatus named query is ill-formed, and will be rejected by the persistence provider.
D.
The named query will fall.
A
A is correct.
Reference:
http://stackoverflow.com/questions/4275291/hibernate-doesnt-remove-child-with-named-query-but-removes-with-session-delete
A
Agreed with Ahmed….