@PreUpdate
  @PrePersist
  public void removePrefixFromVersion() {
    String stackName = stack.getStackName();
    if (version.startsWith(stackName)) {
      version = version.substring(stackName.length() + 1);
    }
  }
Repositories can't be trusted until they have been deployed and we've
detected their actual version. Most of the time, things match up, but
editing a VDF could causes the version to be misrepresented. Once we have
received the correct version of the repository (normally after it's been
installed), then we can set this flag to {@code true}.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/RepositoryVersionEntity.java