public void deleteAll() {
   userOrderRepository.deleteAll();
 }
 public UserOrder addOrEditUserOrder(UserOrder userOrder) {
   return userOrderRepository.save(userOrder);
 }
 public void delete(long userOrderId) {
   userOrderRepository.delete(userOrderId);
 }
 public List<UserOrder> findByDate(Calendar date) {
   return userOrderRepository.findByDate(date);
 }
 public List<UserOrder> findByUser(User user) {
   return userOrderRepository.findByUser(user);
 }
 public List<UserOrder> findAll() {
   return (List<UserOrder>) userOrderRepository.findAll();
 }
 public UserOrder findOne(long userOrderId) {
   return userOrderRepository.findOne(userOrderId);
 }