Fixes #87143 by merging the to-be-persisted entity instead of calling saveOrUpdate if hibernate's session contains another instance of the entity.
Merge pull request #113 from luisromangz/87143-MergeIfHibernateSessionContainsTheEntity

Fixes #87143 by merging the to-be-persisted entity instead of calling sa...