Package org.openblend.fejstbuk.domain

Examples of org.openblend.fejstbuk.domain.Post


        return like;
    }

    public void unlike(Like like) {
        em.remove(like);
        Post post = like.getPost();
        if (post != null) {
            Set<Like> likes = post.getLikes();
            if (likes != null) {
                likes.remove(like);
            }
        }
        User user = like.getUser();
View Full Code Here


        }
        return null;
    }

    public Like addLike(long postId) {
        Post post = em.find(Post.class, postId);
        if (post != null) {
            return dao.like(current, post);
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.openblend.fejstbuk.domain.Post

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.