Package br.edu.utfpr.cm.JGitMinerWeb.model.miner

Examples of br.edu.utfpr.cm.JGitMinerWeb.model.miner.EntityCommitUser


    public static EntityCommitUser createEntity(CommitUser gitCommitUser, GenericDao dao) {
        if (gitCommitUser == null) {
            return null;
        }

        EntityCommitUser commitUser = getCommitUserByEmailAndDate(gitCommitUser.getEmail(), gitCommitUser.getDate(), dao);

        if (commitUser == null) {
            commitUser = new EntityCommitUser();

            commitUser.setMineredAt(new Date());
            commitUser.setDateCommitUser(gitCommitUser.getDate());
            commitUser.setEmail(gitCommitUser.getEmail());
            commitUser.setName(gitCommitUser.getName());

            dao.insert(commitUser);
        }

        return commitUser;
View Full Code Here

TOP

Related Classes of br.edu.utfpr.cm.JGitMinerWeb.model.miner.EntityCommitUser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.