Hi all,
I've been using Hibernate with great success in a big software project. There's just one thing that especially my co-developer (who designed the object model) can't stand and that is that we have to have references from child classes to parent classes. He thinks it's very ugly and not necessarily object-oriented. I know that it can be done without the bi-directional association, but in that case we can't define the foreign key in the child table to be not null and Hibernate needs 3 statements to insert data instead of two (insert parent, insert child, update foreign key column in child) which we're not very happy with from the database side of things. Is there no way around this? If not, is by any chance something planned for Hibernate 3 to allow this?
Many thanks in advance and thanks for an otherwise great tool!
Thomas
|