You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,38 +20,38 @@ _Basics of Java can be learnt from this [course](https://www.udemy.com/course/ja
20
20
21
21
## • __Service Layer using Spring with Spring Boot__
22
22
The service layer interacts with the presentation layer and the persistence layer.
23
-
#### 12. Introduction to Web Services:
23
+
#### 12. Introduction to Web Services:
24
24
Web services are client and server applications that communicate over the World Wide Web’s (WWW) HyperText Transfer Protocol (HTTP). Web services provide a standard means of interoperating between software applications running on a variety of platforms and frameworks [Learn More](https://java2blog.com/restful-web-service-tutorial/)
25
-
#### 13. Introduction to Spring Framework:
25
+
#### 13. Introduction to Spring Framework:
26
26
Spring Framework is an open source Java application development framework which supports building all types of Java applications like web applications, database driven applications, enterprise applications and many more. Java applications developed using Spring are simple, easily testable, reusable and maintainable [Learn More](https://www.tutorialspoint.com/spring/spring_overview.htm)
27
-
#### 14. Dependency Injection using Autowiring:
27
+
#### 14. Dependency Injection using Autowiring:
28
28
[What is Autowiring?](https://www.javatpoint.com/autowiring-in-spring)
29
-
#### 15. Introduction to Spring Boot:
29
+
#### 15. Introduction to Spring Boot:
30
30
Spring Boot is a framework built on the top Spring framework that helps developers build Spring-based applications quickly and easily. The main goal of Spring Boot is to quickly create Spring-based applications without requiring developers to write the same boilerplate configuration again and again [Learn More](https://www.geeksforgeeks.org/introduction-to-spring-boot/)
31
31
#### 16. [Logging in Spring Boot](https://howtodoinjava.com/spring-boot2/logging/spring-boot-logging-configurations/)
32
32
33
33
## • __Persistence Layer using Spring ORM with Spring Boot__
34
34
The persistence layer is the layer which interacts with the relational database and service layer. It gets data from service layer, performs operations on database and sends back results to service layer. In this layer the code to interact with database is implemented.
35
-
#### 17. Spring JDBC:
35
+
#### 17. Spring JDBC:
36
36
You have already learned how to use JDBC for data access. But using JDBC is challenging because of following reasons:
37
37
- Connection Management
38
38
- Exception Handling
39
39
- Code Duplication
40
40
So to make use of JDBC easier Spring provided one layer of abstraction, called Spring JDBC, on top of existing JDBC technology [Learn More](https://www.baeldung.com/spring-jdbc-jdbctemplate)
41
41
#### 18. [Data Access Using JDBC Template](https://www.vogella.com/tutorials/SpringJDBC/article.html)
42
-
#### 19. Object Relational Mapping (ORM):
42
+
#### 19. Object Relational Mapping (ORM):
43
43
You have learned how to use Spring JDBC for developing persistence layer. But Spring JDBC code involves both Java objects (object model) and SQL queries (relational model) which makes it difficult to use. This is because the way data is stored in objects is different from the way it is stored in tables and so some sort of translation is required between object model and relational model. But this translation is not easy because of paradigm mismatch between object and relational model. This paradigm mismatch is called as Object-Relational Impedance Mismatch and it exposes following problems :
44
44
- Problem of Granularity
45
45
- Problem of Inheritance
46
46
- Problem of Identity
47
47
- Problem of Associations
48
48
- Problem of Data Navigation
49
49
To handle these problems, a technique called as Object-Relational Mapping (ORM) came into market. It handles object relational impedance mismatch by providing a way to map objects directly to tables so that object model can be automatically translated to relation model and vice versa, This let developers focus only on the object model [Learn More](https://docs.spring.io/spring/docs/4.2.x/spring-framework-reference/html/orm.html)
50
-
#### 20. Introduction to JPA:
50
+
#### 20. Introduction to JPA:
51
51
The Java Persistence API (JPA) is Java EE specification that defines how data persistence‐related tasks are handled using object‐relational mapping (ORM) frameworks in Java applications [Learn More](https://www.javatpoint.com/jpa-introduction)
52
52
#### 21. Spring JPA:
53
-
The Spring Framework provides support for JPA, Hibernate, and other ORM frameworks. You can easily integrate these frameworks with Spring.[Learn how to use JPA with Spring Boot](https://spring.io/guides/gs/accessing-data-jpa/)
54
-
#### 22. Java Persistence Query Language (JPQL):
53
+
The Spring Framework provides support for JPA, Hibernate, and other ORM frameworks. You can easily integrate these frameworks with Spring.[Learn how to use JPA with Spring Boot](https://spring.io/guides/gs/accessing-data-jpa/)
54
+
#### 22. Java Persistence Query Language (JPQL):
55
55
JPA provides a query language called as Java Persistence Query Language (JPQL). Its syntax is very similar to SQL but these queries are defined using entity classes and its attributes instead of tables and columns. This makes it easy for Java developers to use it. But since database uses SQL JPA implementations translates the JPQL query into SQL using query translator [Learn More](https://www.tutorialspoint.com/jpa/jpa_jpql.htm)
0 commit comments