The pros and cons of Hibernate and JDBC, overview

Source: Internet
Author: User

1. Analyze The pros and cons of hibernate and jdbc

advantages and disadvantages of JDBC

Disadvantages

1, query code is particularly cumbersome

2, repetitive code is very much, frequent try,catch

3, do not do the data cache

4 . Poor portability of SQL (MySQL statement cannot be used in Oracle)

Advantages

Fast speed

Better control.


Benefits and drawbacks of hibernate

is a ormapping Frame

Ormapping Framework: Operational framework for Databases

Advantages

1, relatively simple

2. Data cache: First level cache level two cache query cache

3.Better transplant

Disadvantages

1, because the SQL statement is built within hibernate, so the programmer can not intervene, not controlled

2, if the database is particularly large, not suitable for hibernate


2.hibernate Role and learning content introduction

Hibernate is the ormapping frame,

the ormapping means: Object Relational mapping-- associating a relational database with an object

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/83/79/wKioL1d0iLKjIyv2AAB52cPlmWI284.jpg "title=" 36020160630104953334.jpg "alt=" Wkiol1d0ilkjiyv2aab52cplmwi284.jpg "/>

Hibernate Learning content :

1.Hibernate loading process

2.crud Operations

3. Relationship Operation Focus

4,hibernate 's optimization focus

Data caching

Lazy Loading

Crawl strategy

......

5.hql statement


The pros and cons of Hibernate and JDBC, overview

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.