update classes relations whith hibernate