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