Hi,
Hibernate version: 3.2.3
I have a strange problem. I have a parent child table with one to many relationship. I'm using the following code to eagerly fetch the child records when a parent object is loaded.
Code:
<list name="childList" inverse="true" cascade="all" lazy="false" >
But when I'm using "hibernateTemplate.read(id)", it is fetching adding a null object at index 0 apart from the rest of the child objects. Example, say I have 3 child records associated with a parent record, when I read, it gives me a list of size 4 with null in the index 0.
Any help on this is greatly appreciated.
Thanks in Advance.