ssh面试题及答案(SSH interview questions and answers).docVIP

  • 4
  • 0
  • 约1.51万字
  • 约 16页
  • 2017-08-21 发布于河南
  • 举报

ssh面试题及答案(SSH interview questions and answers).doc

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

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档