fixing bugs with using java sets with hibernate code