Can any on please help me with the following problem
I am having trouble persisting child classes into the database, I have one to many relationship between a class DQP and DQPRule. I have a set in DQP to hold DQPRule objects.
I created a DQP and add DQPRule to the set. when i save the DQP,
DQP gets inserted into the database, but non of the child object get persisted.
Regards,
Vinay
Hibernate version: 3
Mapping documents:
Code between
sessionFactory.openSession() Transaction tx = session.beginTransaction(); session.saveOrUpdate(dqp); session.flush(); session.clear(); tx.commit(); session.close():
Full stack trace of any exception that occurs: None
Name and version of the database you are using:oracle
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
|