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