org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling

Hi
I am facing a problem with the Hibernate framework.
I have a parent table and associate child table
When I try to insert a record to the Parent it is not inserting the record to the child.It is getting inserted to the parent.
I am not getting any exception also
I am using sesson.save(parent object).

do I need to explicitly do session.save(child object)?
mapping xml for the parent






















mapping xml for child














Please help me resolve this problem.
I tried using cascade="all" or cascade ="save-update" option in the parent mapping xml, but it is giving me some error when it tries to access the getter method of child

 

------------------------------------solution----------------------------------------------------------------------------

 

Hi All,
I was able to solve the problem
my parent object set contained the string attibutes which actually should have contained the child objects.

你可能感兴趣的:(Hibernate)