Package de.peacei.gae.foodsupplier.data

Examples of de.peacei.gae.foodsupplier.data.Rating


          user = new User();
          user.setEmail(email);
          user.setName(name);
        }   
       
        final Rating rating = new Rating();
        rating.setUser(user);
        rating.setFoodKey(key);
       
        if(value==Finals.RATING_POSITIVE) {
          rating.setValue(Rating.Value.positive);
        } else {
          rating.setValue(Rating.Value.negative);
        }
       
        DateTime dateTime = new DateTime(DateTimeZone.forTimeZone(CalendarUtil.getCalendar().getTimeZone()));
        rating.setTimestamp(dateTime.getMillis());
       
        ratingDAO.saveRating(rating);
       
//        final Comment comment = new Comment();
//        comment.setUser(user);
View Full Code Here

TOP

Related Classes of de.peacei.gae.foodsupplier.data.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.