Package monashbook.models

Examples of monashbook.models.Review


            loginController.setErrorMessage("Please login to make comments.");
        }else {
            DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
            Date date = new Date();
            String currentDate = dateFormat.format(date);
            Review review = new Review();
            review.setPatron(patron);
            review.setBook(book);
            review.setCommentDate(currentDate);
            review.setComment(comments);
            review.setRating(rating);
           
            book.getReviews().add(review);
            loginController.getPatronReviews().add(review);
            bookService.addBook(book);
            //bookService.addReview(review);
View Full Code Here

TOP

Related Classes of monashbook.models.Review

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.