Skip to content

Commit d25c00a

Browse files
author
Eric Harmeling
committed
1 parent 152ee24 commit d25c00a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

roach-data-jdbc/src/main/java/io/roach/data/jdbc/AccountRepository.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
/**
1515
* The main account repository, notice there's no implementation needed since its auto-proxied by
1616
* spring-data.
17-
* <p>
18-
* Should have extended PagingAndSortingRepository in normal cases.
1917
*/
2018
@Repository
2119
@Transactional(propagation = MANDATORY)

roach-data-jdbc/src/main/java/io/roach/data/jdbc/PagedAccountRepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import static org.springframework.transaction.annotation.Propagation.MANDATORY;
1111

1212
@Repository
13-
// @Transactional is not needed but here for clarity since we want repos to always be called from a tx context
13+
// @Transactional annotation here to emphasise that repositories should always be called within an existing transaction context
1414
@Transactional(propagation = MANDATORY)
1515
public class PagedAccountRepositoryImpl implements PagedAccountRepository {
1616
@Autowired

0 commit comments

Comments
 (0)