Created
September 10, 2016 01:58
-
-
Save dodangquan/21b6f8f0fa07fa65b1e545abffb3ffd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @org.springframework.transaction.annotation.Transactional | |
@Service | |
@Transactional(readOnly = true) | |
public class BookServiceImpl implements BookService { | |
@Autowired | |
private BookDao bookDao; | |
@Transactional | |
public Book findByName(String name) { | |
Book book = bookDao.findByName(name); | |
return book; | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment