@@ -0,0 +1,866 @@
+package speedtyper.service.impl;%0A%0Aimport java.util.List;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Service;%0Aimport org.springframework.transaction.annotation.Transactional;%0A%0Aimport speedtyper.dao.TextDao;%0Aimport speedtyper.model.Text;%0Aimport speedtyper.service.TextService;%0A%0A@Service%0Apublic class TextServiceImpl implements TextService %7B%0A%0A%09@Autowired%0A%09private TextDao textDao;%0A%09%0A%09@Transactional%0A%09public void add(Text text) %7B%0A%09%09this.textDao.add(text);%0A%09%7D%0A%0A%09@Transactional%0A%09public void edit(Text text) %7B%0A%09%09this.textDao.edit(text);%0A%09%7D%0A%0A%09@Transactional%0A%09public void delete(int textId) %7B%0A%09%09this.textDao.delete(textId);%0A%09%7D%0A%0A%09@Transactional%0A%09public Text getText(int textId) %7B%0A%09%09return this.textDao.getText(textId);%0A%09%7D%0A%0A%09@Transactional%0A%09public List%3CText%3E getAllTexts() %7B%0A%09%09return this.textDao.getAllTexts();%0A%09%7D%0A%0A%7D%0A

implemented the text service