October 2018
Intermediate to advanced
590 pages
15h 5m
English
Among the implementations of the domain models, application services, and repositories, most of them are similar to those we have covered in previous chapters. In this section, we will focus on how to change the positions of card lists and cards.
As you have seen in the APIs used to change card list and card positions, in a single request, there could be multiple position changes. We will implement the changes using the batchUpdate() method of Spring's JdbcTemplate.
Let's take a look at HibernateCardRepository, which looks like the following:
...@Repositorypublic class HibernateCardRepository extends HibernateSupport<Card> implements CardRepository { private JdbcTemplate jdbcTemplate; HibernateCardRepository(EntityManager ...Read now
Unlock full access