About 17,400 results
Open links in new tab
  1. java - JPA or JDBC, how are they different? - Stack Overflow

    Aug 27, 2017 · JDBC is the predecessor of JPA. JDBC is a bridge between the Java world and the databases world. In JDBC you need to expose all dirty details needed for CRUD operations, such as table names, column names, while in JPA (which is using JDBC underneath), you also specify those details of database metadata, but with the use of Java annotations.

  2. Why use JPA instead of writing the SQL query using JDBC?

    Sep 17, 2020 · JPA allows you to avoid writing DDL in a database specific dialect of SQL. Instead you write "mappings" in XML, or using Java annotations. JPA allows you to avoid writing DML in the database specific dialect of SQL. JPA allows you to load and save Java objects and graphs without any DML language at all.

  3. java - JPA vs. JDBC, stored procedures and Co. or How to convince …

    Jun 4, 2010 · JPA requires you to know the underlying table structure. Stored procedures/functions mask that; you only need to know procedure or function to call and what its return type is. JDBC makes calling stored procedures very easy, using the Connection object's prepareCall methods.

  4. java - JPA vs Spring JdbcTemplate - Stack Overflow

    Jan 1, 2011 · For a new project is JPA always the recommended tool for handling relational data or are there scenarios where Spring JdbcTemplate is a better choice? Some factors to consider in your response: new database schema vs pre-existing schema and tables; level of developer expertise; ease with which can integrate with a data caching layer; performance

  5. java - JDBC Query vs JPA Query Performance - Stack Overflow

    JDBC Query vs JPA Query Performance. Ask Question Asked 5 years ago. Modified 1 year, 8 months ago. Viewed ...

  6. ORM solutions (JPA; Hibernate) vs. JDBC - Stack Overflow

    Dec 20, 2016 · I have done some comparison performance testing between Spring/Hibernate/JPA and pure JDBC. I have found a significant difference in performance using HSQL.. With Spring/Hib/JPA, I can insert 3000-4000 of my 1.5 KB objects (with a One-Many and a Many-Many relationship) in 5 seconds, while with direct JDBC calls I can insert 10,000-12,000 of ...

  7. Spring Data JDBC / Spring Data JPA vs Hibernate

    Feb 9, 2018 · The thing is Spring data for jpa is an abstraction over jpa, which is an abstraction over JDBC. If offer nice features, even if jpa is usable without it. It becomes really powerful with Spring data rest. But the more a framework does for you, the more you need to understand underlying technology. It is even more true if you use spring-data-rest.

  8. R2DBC vs Spring Jdbc Vs Spring Data JDBC? - Stack Overflow

    Aug 21, 2021 · Both Spring Data JDBC and Spring Data R2DBC allow to combine them freely with Spring JDBC and Spring R2DBC. This is very different for JPA and everything build on it, because JPA has a cache as integral part of the system which will lead to interesting effects when you mix JPA and direct JDBC access within a single transaction.

  9. java - JPA vs ORM vs Hibernate? - Stack Overflow

    I am not sure if i am right about JPA vs ORM. ORM: Object Relational Mapping is concept/process of converting the data from Object oriented language to relational DB and vice versa For example in java its done with the help of reflection and jdbc. Hibernate: Its the implementation of above concept. JPA: Its the one step above ORM. Its high ...

  10. Difference between JTA, JPA and plain JDBC in hibernate

    Mar 24, 2022 · JDBC is a Java standard for database connection. JPA isolates the Java developer from the inner workings of JDBC and database operations. Hibernate, EclipseLink, OpenJPA and Data Nucleus are famous JPA implementations. JTA is a standard for transactions, allowing for management of multiple transactions among multiple databases.

Refresh