Esempio n. 1
0
 private List<Cake> retrieveCakes(List<Long> ids) {
   final List<IDBCake> dbCakes = dao.getCakes(ids);
   if (dbCakes == null) {
     throw new RuntimeException("Get: Cakes with <" + ids + "> not found");
   }
   return this.cakeConverter.buildCakes(dbCakes);
 }