Sync issue with hibernate