[Web Development Learning Notes] Hibernate learning summary, learning notes hibernate

Source: Internet
Author: User
Tags what sql

[Web Development Learning Notes] Hibernate learning summary, learning notes hibernate
Hibernate learning notes part: This part of learning is easier, the code is more comprehensive, and easy to understand. It can be said that it is something of a memory nature. I did not take notes myself during my learning process. I just referred to the learning notes I found online. I learned and reviewed the notes quickly. Some jar packages are missing in the source code. I also sorted out relevant jar packages and software during my self-study and uploaded them. I wish you a happy learning experience. Related resource links: related database connection resources: http://download.csdn.net/detail/licong_carp/7656601
Related jar package files: http://download.csdn.net/detail/licong_carp/7656577



Let's summarize the directories to be learned for JAVA web development.

Let me talk about the main "html", "java basics", "java Server", "servlet", "jsp", "javabean", "javamail", and "web layer technology" (struts, jsf, etc) business Layer Technology (spring) Persistence Layer Technology (jdbc hibernate, etc)
There are also some front-end technologies such as css js. Connection Pool. Wait for a small background technology.

Does Hibernate need to be used in WEB development?

Anything has both advantages and disadvantages. So does Hibernate. His idea is advanced and will be an attempt to convert databases from a relational database to an object type in the future. It encapsulates process-oriented database access into an object-oriented model, so that we no longer need to think about what SQL statements to use during development, and make our code more object-oriented. However, in this form, the cost of a large amount of code is exchanged. Hibernate encapsulates a large amount of code to address features such as concurrency, object cascading operations, and flexible retrieval, in addition, it takes into account a variety of users and use environments, so the execution efficiency is a little slow. However, as the hardware level continues to improve, this disadvantage will gradually fade out. In addition, after Hibernate is used, we do not need to consider how to communicate with the database. We put our focus on business logic and user interaction, which greatly improves the development efficiency of the team.

Therefore, I personally think that if the project scale must be developed by more than five developers, it is best to consider using Object Persistence frameworks like Hibernate. In this way, the cost of code maintenance will be greatly reduced. As for the efficiency issue, we can leave it alone, because the hardware update speed is much faster than our current development efficiency. In the near future, a 4-core, 8-core, 16-core CPU or even a server that integrates several multi-core CPUs will not be a problem, so the speed can be solved by hardware. We can focus on the business logic.

If the project scale is not large, you can try to use this framework, because the code developed under this framework is very standard and highly readable. It is conducive to communication among many people. Unlike traditional code, it uses a lot of SQL statements to make others unable to understand what you are doing. The old code at the level is similar to a database operating system, there is no way to talk about object-oriented.

However, as far as China's national conditions are concerned, we may encounter some technical problems when using Hibernate, which are difficult to solve. Because the existing books on the market can only be used for usage-level introduction, there is not a very detailed in-depth research, so if the project is very large, if you encounter some very professional questions, it is difficult to get a good answer. I really hope that China can develop such a good framework system. I am trying to do it myself, but it is very difficult. This system can be achieved only by an excellent team and good investors. Sad Chinese programmers are always behind others!

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.