public void clearAll() { dao.deleteAll(); /* for (BirdModel model: findAll()) { dao.delete(model); }*/ // dao.clearAll(); }
public void save(BirdModel model) throws NoSuchLanguageException { if (familyService.findById(model.getFamily().getFamily()) == null) { familyService.save(model.getFamily()); } dao.save(model); // birdNameService.saveAll(model.getNames()); }
public BirdModel findByScientificName(String name) { return dao.findByScientificName(name); }
public BirdModel getRandomBird() { return dao.getRandomBird(); }
public void shutdown() { dao.shutdown(); }
public void delete(BirdModel model) { dao.delete(model); }
public void update(BirdModel model) { dao.update(model); }
public List<BirdModel> findAll() { return dao.findAll(); }
public BirdModel findById(String id) { return dao.findById(id); }