Hibernate entry 01 and hibernate entry 01

Source: Internet
Author: User

Hibernate entry 01 and hibernate entry 01

 

I started to study Hibernate today. I 'd like to share my daily notes with you.

I hope you can point out something wrong. Don't try it out... Haha.

 

1. Why learning framework technology

2. Concepts of frameworks

3. Introduction to mainstream frameworks

 

 

1. Why learning framework technology

How can I create a professional PPT document? A simple method is to use the template function of Microsoft PowerPoint,

 

The document created using the template already has a "shelf" of the PPT. We need to fill in the necessary information like "fill in blank questions,

 

Think about the advantages of using a PPT template to create a PPT?

 

Using a PPT template to create a document is as follows:

(1) Improve the efficiency without considering issues such as layout and layout;

(2) concentrate on the content of the PPT to ensure the "quality" of the speech;

(3) Beginners can also make professional slides.

 

Using the framework to build a project is also based on this consideration. After determining which technical framework to use, there will be a "semi-finished product", and then fill in the content in the semi-finished product, and the work will be completed.

 

The advantages of the framework technology are as follows:

(1) There is no need to consider public issues. The framework has already helped us;

(2) Business logic can earn credibility and ensure the development quality of core business logic;

(3) unified structure for easy learning and maintenance;

(4) The framework integrates previous experiences to help new users write high-quality programs with stable performance and beautiful structure.

 

2. Concepts of frameworks

A Framework is a semi-finished product that provides reusable public structures. It provides great convenience for us to build new applications.

On the one hand, it provides tools that can be used for reuse. More importantly, it provides reusable designs.

The term frame first appeared in the Reconstruction field, which refers to the architectural skeleton built before the building.

 

For an application, the "framework" is the skeleton of the application. developers can add their own things on this skeleton to build an application system that meets their needs.

The framework embodies the experience and knowledge of our predecessors. With the framework, we are standing on the shoulders of giants.

 

Rickard Oberg (author of WebWork and one of the founders of JBoss) said: "the strength of a framework does not come from what it can do, but from what it cannot do ."

Rickard emphasizes another aspect of the framework: the framework makes chaotic things structured.

Shakespeare said: "One thousand people have one thousand Hamlet ." Similarly, if there is no framework, one thousand people will write one thousand kinds of Servlet + JavaBean + JSP code, while the framework ensures a unified program structure style.

 

From the enterprise perspective, the training cost and software maintenance cost are reduced. The framework maintains an appropriate balance between structural unification and creativity.

 

3. Introduction to mainstream frameworks 3.1 Struts frameworks

Struts is one of the earliest open-source Java frameworks. Most existing Java EE Web applications are built based on the Struts framework.

Struts is an excellent Implementation of the MVC design pattern. It uses Java Servlet/JSP technology to implement the application framework of the MVC design pattern based on JavaEE Web applications, is a classic product of the MVC design model.

 

3.2 Struts2 framework

Taking excellent WebWork design ideas as the core, Struts2 absorbs some of the advantages of the struts framework and provides a more clean Web application framework based on the MVC design pattern.

It introduces several new framework features: separates the interceptor of the Cross-concern from the logic, reduces or eliminates configuration files, and runs through the powerful expression language of the entire framework, supports changeable and reusable MVC-based tag APIs.

Struts2 makes the entire framework clearer and more flexible by leveraging the experience and lessons learned from other MVC frameworks.

 

3.3 Hibernate framework

Hibernate is an excellent persistence framework that simplifies the process of saving object data to a database or reading data from a database and encapsulating it to an object.

Hibernate uses simple configuration and encoding to replace the tedious JDBC program code.

Hibernate has become the mainstream database persistence framework and is widely used.

 

3.4 Spring framework

Spring is also an open-source framework. It aims to make the existing JavaEE technology easier to use and promote good programming habits.

It is a lightweight framework that permeate all aspects of JavaEE technology. It mainly serves as a dependency injection container and AOP implementation. It also provides declarative transactions, support for the AOP layer, and other simplified development functions.

Spring can also be easily integrated with frameworks such as Struts, Struts2, and Hibernate.

The well-known SSH integration framework refers to the technical framework of Struts/Struts2 + Spring + Hibernate.

Using this integrated framework will make our applications more robust, robust, lightweight, and elegant. This is also the most popular Java technical framework.

 

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.