}
EntityRepository repository = RepositoryServices.createEntity(gitPullReqMaker.getRepo(), dao, false);
EntityUser user = UserServices.createEntity(gitPullReqMaker.getUser(), dao, false);
EntityPullRequestMarker pullReMaker = getByRefRepoUser(gitPullReqMaker.getRef(), repository, user, dao);
if (pullReMaker == null) {
pullReMaker = new EntityPullRequestMarker();
pullReMaker.setMineredAt(new Date());
pullReMaker.setLabel(gitPullReqMaker.getLabel());
pullReMaker.setRefPullRequestMarker(gitPullReqMaker.getRef());
pullReMaker.setRepo(repository);
pullReMaker.setSha(gitPullReqMaker.getSha());
pullReMaker.setUser(user);
dao.insert(pullReMaker);
}
return pullReMaker;