Hibernate Experts Required
Posted on 2005-04-14
I have a one-to-many relation ship defined using XDoclet tags between two tables say cat->kittens. I have a requirement here, suppose that a cat dies, all the kittens associated with this cat should be now assigned to another cat (say step-cat), how do i achieve it ?? Does Hibernate do that automatically, if we specify a default value for cat_id in the kittens table, or is there anything we should write to explicity command the Hibernate to do it this way.