Blog

[Spring]34_1 JDBC Template → JPA

Author
Summary
Check the differ
Category
Study
Tags
Spring
Favorite
Memory Date
2023/09/05
Cross Reference Study
Related Media
Related Thought
Related Lessons
tag
날짜
작성자
진행상황
진행 전
태그구분
6 more properties
USE JPA(Java Persistent API) instead of JDBC Template
Point
Complexity : JDBC.T > JPA
Performance : JDBC.T > JPA
Maintenence : JDBC.T < JPA
Productivity : JDBC.T < JPA
Contents
Originally JDBC Template was applied instead of JDBC- JDBC offers DB Connection and operations but, has to set almost manually all above- JDBC Template solved up issues with 'Bean' injection- But, Still JDBC Templates has many duplications, complexity of SQL query codes and difficult to maintenance
JPA is a simple interface includes over JDBC functions as automatic SQL process- Object-Relational Mapping is the best feature on it.- It makes Object equals Data Row pattern to OOP developers- OOP Developer could focus on business logic and easy to recognize relationship of DB and Entity class