Sure, Set would be better, but the current interface return a
List......so I let Hibernate do the dirty work for me.
Corby Page wrote:
Also, actual Store should not populate the stepIndex
column cause we are using a bag for compatibility. And I am sure of that
cause I put that store in production, and we some thousand workflows.
Can you investigate further ?
OK, thanks, Luca! I was using my own copy of the .hbm.xml files instead of the ones that shipped with the .jar, and I did not notice that you had changed the list semantics to bag. I suppose for the 'currentSteps' collection, Set might work fine as well.