Package model

Examples of model.User


        em.persist(rating);
        return rating;
    }

    public void addFriend(User user, String friendLogin) {
        User friend = findByLogin(friendLogin);
        if (friend != null && !friend.equals(user)) {
            user.getFriends().add(friend);
        }
    }
View Full Code Here

TOP

Related Classes of model.User

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.