I\'m using Hibernate with annotations (in spring), and I have an object which has an ordered, many-to-one relationship which a child object which has a composite primary key
After saving the Parent object, you have to explicitly set the parentId in the Child objects for the inserts on the Child objects to work.