@Transactional
  public PrincipalTypeEntity merge(PrincipalTypeEntity entity) {
    return entityManagerProvider.get().merge(entity);
  }
Make an instance managed and persistent.

@param entity  entity to store
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/PrincipalTypeDAO.java