October 2018
Intermediate to advanced
590 pages
15h 5m
English
The last part of the backend implementation of the home page is implementing repositories for each entity. We will need to create the following repositories:
These repositories, as well as UserRepository, all have a save() method to persist entities. The only difference between the save() methods of different repositories is the entity to be saved. It would be better that we create a generic save() method in HibernateSupport to eliminate the code duplication.
The following is the change to HibernateSupport:
abstract class HibernateSupport<T> { ... ...Read now
Unlock full access