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