The merge method has been fixed to support JPA.