I tried the following code in DAO class to remove the PromptSelectionsDetails List values before removing the parent entity. But it didn't solved my problem yet. Do you have any other way to overcome this?
List<PromptsSelectionsDetails> prSelDtlsList = (List<PromptsSelectionsDetails>)prSel.getPromptsSelectionsDetailsList();
for(PromptsSelectionsDetails pr:prSelDtlsList){
getJpaTemplate().remove(pr);
}
Thanks.
[Message sent by forum member 'dinesh_kb' (dinesh_kb)]
http://forums.java.net/jive/thread.jspa?messageID=290264