Package model

Examples of model.Rating


        em.persist(user);
        return user;
    }

    public Rating rate(User user, Movie movie, int stars, String comment) {
        Rating rating = new Rating();
        rating.setUser(user);
        rating.setMovie(movie);
        rating.setStars(stars);
        rating.setComment(comment);
        em.persist(rating);
        return rating;
    }
View Full Code Here

TOP

Related Classes of model.Rating

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.