JDBC vs JPA
JDBC 과 JPA 의 차이를 구조화된 비교 표에서 확인한 뒤, 관련 면접 질문, 퀴즈, 유사 비교로 이어가세요.
차이점 비교
JDBC vs JPA - A key comparison and difference of the topics or subjects that will help you understand which is best for your use case. Check out to compare JPA and JDBC as very common job interview questions.
JDBC 과 JPA 의 차이
JDBC vs JPA - A key comparison and difference of the topics or subjects that will help you understand which is best for your use case. Check out to compare JPA and JDBC as very common job interview questions.
|
JDBC
|
JPA
|
|---|---|
| JDBC is a standard for Database Access. | JPA is a standard for ORM. |
| JDBC is a standard for connecting to a DB directly and running SQL against it - e.g SELECT * FROM USERS, etc. Datasets can be returned which you can handle in your app, and you can do all the usual things like INSERTS, DELETES, run stored procedures, etc. It is one of the underlying technologies behind most java database access (including JPA providers). One of the issues with traditional JDBC apps is that you can often have some crappy code where lots of mapping between datasets and objects occur, logic is mixed in with SQL, etc. |
JPA is a standard for Object Relational Mapping. This is a technology which allows you to map between objects in code and database tables. This can "hide" the SQL from the developer so that all they deal with are java classes, and the provider allows you to save them and load them magically. Mostly, XML mapping files or annotations on getters, setters can be used to tell the JPA provider which fields on your object map to which fields in the DB. The most famous JPA provider is Hibernate, so is a good place to start for concrete examples. Other JPA implementations are OpenJPA, Toplink etc. |
복습용 저장
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
관련 차이점
JDBC 및 JPA 와 관련된 유사 비교를 살펴보며 더 넓은 맥락과 면접 준비에 도움을 얻어보세요.
아래에서 차이점 보기
아래의 모든 주제 비교를 살펴보거나, 위 검색창을 사용해 목록을 즉시 좁혀보세요.