├── README.md ├── spring-data-jpa-named-query ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── guides │ │ │ └── springboot2 │ │ │ └── springboottestingexamples │ │ │ ├── Application.java │ │ │ ├── model │ │ │ ├── Employee.java │ │ │ └── User.java │ │ │ └── repository │ │ │ ├── EmployeeRepository.java │ │ │ └── UserRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── guides │ └── springboot2 │ └── springboottestingexamples │ ├── ApplicationTests.java │ └── EmployeeRepositoryTests.java ├── spring-data-jpa-query-annotation ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── net │ │ │ └── guides │ │ │ └── springboot2 │ │ │ └── springboottestingexamples │ │ │ ├── Application.java │ │ │ ├── model │ │ │ ├── Employee.java │ │ │ └── User.java │ │ │ └── repository │ │ │ ├── EmployeeRepository.java │ │ │ └── UserRepository.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── net │ └── guides │ └── springboot2 │ └── springboottestingexamples │ ├── ApplicationTests.java │ └── EmployeeRepositoryTests.java └── springboot2-jpa-auditing ├── .gitignore ├── .mvn └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── net │ │ └── guides │ │ └── springboot │ │ └── springboot2jpaauditing │ │ ├── Springboot2JpaAuditingApplication.java │ │ ├── audit │ │ ├── Auditable.java │ │ └── AuditorAwareImpl.java │ │ ├── controller │ │ └── UserController.java │ │ ├── exception │ │ └── ResourceNotFoundException.java │ │ ├── model │ │ └── User.java │ │ └── repository │ │ └── UserRepository.java └── resources │ └── application.properties └── test └── java └── net └── guides └── springboot └── springboot2jpaauditing └── Springboot2JpaAuditingApplicationTests.java /README.md: -------------------------------------------------------------------------------- 1 |
Sr.No. | Description |
---|---|
60 |
63 |
61 | (1)
62 | |
64 |
69 |
65 | Call the method of Repository interface from Service.
66 |
67 | Entity object, Entity ID etc. are passed as method calling parameters. In the above example, the entity is passed, however, a primitive value can also be passed.
68 | |
71 |
74 |
72 | (2)
73 | |
75 |
80 |
76 | A proxy class which dynamically implements Repository interface delegates the process to
77 | org.springframework.data.jpa.repository.support.SimpleJpaRepository or custom Repository class.
78 | Parameters specified by Service are passed.
79 | |
82 |
85 |
83 | (3)
84 | |
86 |
91 |
87 | Repository implementation class calls JPA APIs.
88 |
89 | The parameters specified by Service and the parameters generated by the implementation class of the Repository are passed.
90 | |
93 |
96 |
94 | (4)
95 | |
97 |
102 |
98 | Hibernate JPA reference implementation calls the Hibernate core APIs.
99 |
100 | The parameters specified by the implementation class of the Repository and the parameters generated by Hibernate JPA reference implementation are passed.
101 | |
104 |
107 |
105 | (5)
106 | |
108 |
113 |
109 | Hibernate Core API generates SQL and bind values from the specified parameters and passes to JDBC driver.
110 |
111 | (API of java.sql.PreparedStatement is used for binding the actual values.)
112 | |
115 |
118 |
116 | (6)
117 | |
119 |
122 |
120 | JDBC driver executes SQL.
121 | |
151 |173 |152 |
154 |- Spring MVC 5 Tutorial
153 |155 |
157 |- Spring Core 5 Tutorial
156 |158 |
160 |- Spring Boot 2 Tutorial
159 |161 |
163 |- Apache Maven Tutorial
162 |164 |
166 |- JAX-RS Tutorial
165 |167 |
169 |- Jersey Rest Tutorial
168 |170 |
172 |- Spring Framework 5
171 |