Add saveOrUpdate to abstract.