October 2018
Intermediate to advanced
590 pages
15h 5m
English
As mentioned earlier, we will use Hibernate to save data into a MySQL database. The JPA implementation of the Spring Data JPA is based on Hibernate.
The special part of the Spring Data JPA is that it significantly reduces the effort to write the repository by only requiring the developers to write repository interfaces, and it will generate the implementation automatically for us, which sounds perfect and very productive.
To use this autogeneration of the implementation feature that Spring Data JPA provides, we will need to change the UserRepository interface to the following:
@Repositorypublic interface UserRepository extends JpaRepository<User, Long> { User findByUsername(String username); User findByEmailAddress(String ...Read now
Unlock full access