Here is my hbm and test code respectively. I am using Spring\'s HibernateTemplate. I doesn\'t use DAO. Hibernate 2.2.5 with Spring 2.0.7
hbm
<
Ok the root cause was the invalid mapping on my part for the collection. Thanks to this article on composite mapping
Wrong:
Correct
Complete mapping
PRODUCT_SN