Senior java engineer ------- functions and key points of hibernate

Source: Internet
Author: User

I. What is the role of hibernate in the ssh framework? 1. hibernate is a persistence framework of the orm (Object ing) framework. It is a lightweight encapsulation of JDBC, allowing programmers to operate databases with object-oriented thinking. 2. Supports various relational databases. Its cascade function supports various relationships between tables. 3. After integration with spring, the code for connecting to the database and the Code for controlling things are all managed by spring, which simplifies the code and better manages things. Www.2cto. com4 and hibernate provide level-1 and level-2 Cache functions, greatly improving performance. 5. hibernate provides convenient APIs for CURD, which reduces the compilation of a large number of SQL statements. Ii. Important attributes and significance of the cascade system 1. inverse (which end maintains the association relationship) the inverse value is used to indicate who maintains the association. If it is set to true, the role is reversed, that is, the object associated with this attribute maintains the association relationship. 2. casecade (cascade Delete, storage, update, all) all: all operations are passed to the associated object save-update save and update passed to the associated object delete operation passed to the associated object delete-orphan: all operations are passed to the associated object and the objects that are no longer associated with the parent object are deleted. 3. lazy loading (the session must be valid or cannot be obtained. The default value is true for delayed loading) lazy = false indicates that all associated table records will be loaded after startup. lazy = true indicates that only the associated method can be loaded.

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.