Package com.impetus.client.twitter.entities

Examples of com.impetus.client.twitter.entities.UserHBase


    }

    @Override
    public void startFollowing(String userId, String friendUserId)
    {
        UserHBase user = em.find(UserHBase.class, userId);
        UserHBase friend = em.find(UserHBase.class, friendUserId);

        user.addFriend(friend);
        em.persist(user);

        friend.addFollower(user);
        em.persist(friend);
    }
View Full Code Here


    }

    @Override
    public void addFollower(String userId, String followerUserId)
    {
        UserHBase user = em.find(UserHBase.class, userId);
        UserHBase follower = em.find(UserHBase.class, followerUserId);

        user.addFollower(follower);
        em.persist(user);
    }
View Full Code Here

    }

    @Override
    public UserHBase findUserById(String userId)
    {
        UserHBase user = em.find(UserHBase.class, userId);
        return user;
    }
View Full Code Here

TOP

Related Classes of com.impetus.client.twitter.entities.UserHBase

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.