71727374757677787980
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); } }