Package org.ops4j.pax.exam.sample2.model

Examples of org.ops4j.pax.exam.sample2.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


        return null;
    }

    public User register(String login, String name, String password) {
        if (findByLogin(login) != null) {
            throw new MovieDbException("login is already taken");
        }
        User user = new User();
        user.setId(login);
        user.setName(name);
        user.setPassword(password);
View Full Code Here

TOP

Related Classes of org.ops4j.pax.exam.sample2.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.