- 4
- 0
- 约1.51万字
- 约 16页
- 2017-08-21 发布于河南
- 举报
ssh面试题及答案(SSH interview questions and answers)
ssh面试题及答案(SSH interview questions and answers)
The working principle of Hibernate and why?
Principle:
1. reads and parses the configuration file
2. read and parse mapping information, create SessionFactory
3. open Sesssion
4. create a transaction Transation
5. persistence operations
6. commit transaction
7. close Session
8. close SesstionFactory
Why use:
1. of the JDBC access to the database code package, which greatly simplifies the data access layer tedious repetitive code.
2. Hibernate is a mainstream JDBC persistence framework based on ORM is an excellent implementation. He greatly simplifies the DAO layer encoding
3. hibernate using Java reflection mechanism, rather than bytecode enhancement procedures to achieve transparency.
The performance of 4. hibernate is very good, because it is a lightweight framework. The great flexibility of mapping. It supports a variety of relational database, from one to many to many relationships.
2.Hibernate is how to delay load?
1. Hibernate2: a) to achieve the delayed loading of entity object B) set (Collection)
2. Hibernate3 provides delayed loading function attributes
When the Hibernate in the query data, the data does not exist with memory, when the program is really the operation of the data, and the object exists in memory, realizes the delay load, he saves the server memory overhead, thus improving the performance of the server.
How to realize the relation between the class 3.Hibernate? (such as: one to many and many to many relationship)
The relationship between classes is mainly reflected in the relationship between tables to operate, they operate on the city, we put the program table and mapping class all together, they through the configuration file in many-to-one, one-to-many, many-to-many,
4. cache mechanism of Hibernate
1. internal cache in Hibernate is also called a cache cache, which belongs to the application of things
2. level two cache:
A application and cache)
B) distributed cache
Conditions: third party data
您可能关注的文档
- java语法锦集(Java grammar test set).doc
- java解析xml的4种方法(4 methods of Java parsing XML).doc
- java电子词典课程设计(Java electronic dictionary curriculum design).doc
- java语言学习步骤及流程(Java language learning procedures and processes).doc
- java语言中抽象类和接口的区别(The difference between the abstract class and interface in Java language).doc
- java语言测试(Java language test).doc
- java语言程序设计一(第10课例题)(Java language program design (tenth class title)).doc
- java语言程序设计讲义-第七章(Java Language Programming Notes - Chapter seventh).doc
- java语言课程设计任务书及题目(The design task and topic Java language course).doc
- java课程设计 计算器(Java curriculum design calculator).doc
- stc12c2052做的多路ad测语言(A ad do stc12c2052 language test).doc
- struts、spring、hibernate工作原理(Struts Hibernate工作原理、、弹簧).doc
- summary 写作(摘要写作).doc
- swop模型所代表的含义以及优缺点分析(Swop model analysis on the meaning, advantages and disadvantages).doc
- swift语言入门教程【中文版】(Swift language tutorial version Chinese []).doc
- study_englishfirst_com(study_englishfirst_com).doc
- swf格式转换成html(Swf format conversion HTML).doc
- s公务员申论写作万用句型及模板(S civil servants Statation writing universal sentence pattern and template).doc
- s版三年级下册《飞吧,海鸥》教学设计(S version of the third grade II fly Seagull teaching design).doc
- s版教案 看图说话学拼音5 g k h)(The s version of teaching talk learn pinyin 5 G K H)).doc
最近下载
- GBT 30219-2013 中药煎药机国家标准.pptx VIP
- 安徽省 2021 年普通高等学校专升本招生考试《大学语文》冲刺期测试题.docx VIP
- 2025年铁岭市事业单位公开招聘动物检疫岗位工作人员备考题库完整参考答案详解.docx VIP
- T CAQI 237-2021《家用和类似用途电动洗衣机精准洗涤技术要求和试验方法》.pdf
- SJ∕T 11674.1-2017- 信息技术服务 集成实施 第1部分:通用要求.pdf VIP
- 电子产品设计案例教程(微课版)—基于嘉立创EDA(专业版) 课件全套 第1--13章 嘉立创EDA专业版概述--- 复用图块_1-100.pptx VIP
- 2026春小学美术人美版三年级下册教学设计及每课教学反思(附目录).docx
- 人教版小学三年级下册数学口算天天练全套.pdf VIP
- 土壤场地调查报告.pdf VIP
- 《深基坑支护设计地下连续墙设计》-毕业论文(设计).doc VIP
原创力文档

文档评论(0)