Announcement Announcement Module
Collapse
No announcement yet.
Hibernate Parent Child Relationship Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hibernate Parent Child Relationship

    Hi all,

    1. am having the parent child relationship for some of my beans,
    i have the scenario like am updating the childs & setting those as a set(one-many) to the parent, all the references are given,
    i used the cascade="all-delete-orphan" / cascade="all"

    i also used the hibernateTemplate.merge(Object)
    hibernateTemplate.update(Object),

    for all these cases it is updating only the parent object, not the updated childs ?

    2.

    i have a case like when am deleting the parent, all the child needs to be removed, but the thing is in the child am having the references to the other tables(only foriegn key's) of some other tables,
    it not going to delete the child's,

    can any one provide the solution for this one ?

    i searched in this forum but it could n't solved the problem.

    Thanks in advance,
    Sathya.

  • #2
    This is a Hibernate question. Try the forum on hibernate.org

    Comment


    • #3
      You may want to post your mappings.

      Comment

      Working...
      X