· poll,java
broken image

JPA is the first choice among us

Yat Yan said:

Jdbc because you can control a sql statement easily. When your sql becomes slower, you can explain it using a sql client.

Sarvesh said:

JPA its faster performance

chatGPT:

👉Use JDBC when you need fine-grained control over SQL queries and database operations, or when you’re working with legacy code that already uses JDBC.

👉Use JPA when you want to work with a higher level of abstraction and automate object-relational mapping, making it more convenient to deal with complex data interactions and relationships.

Some of the advantages of JPA over JDBC are:

👉JPA is database-independent

👉JPA allows you to create associations between entities

👉JPA handles the conversion between Java objects and database records

#poll #java #jpa #jdbc #programming