5、Hibernate the Application Framework

Data's holding out for long time layer and Hibernate is one piece according to hold out for long time layer frame, is a kind of realization object and relation of the tool which reflect to shoot(O/R Mapping), it carried on the object of the lightweight to pack to the JDBC and make procedure member can usage object plait distance thought to operation database。 It not only provided to shoot from Java to reflect of data form, but also provided a data a search and instauration mechanism。 Opposite in usage JDBC and SQL to operation database, use Hibernate ability consumedly of exaltation realization of efficiency。 The Hibernate frame use allocation document of the form come to the reflect of the definition Java object and data form to shoot relation, in the meantime at more deep of level of data form of relation explanation for the relations such as inherit of and containment etc。 of Java object。 Pass the usage HQL language sentence complications of relation the calculate way use the way of object description, to a large extent simplification logarithms according to of search, speed development of efficiency。 Have in the Hibernate a simple but keep the API of view, used for to the database mean of object performance search。 Want to establish or the modification be these objects, need in the procedure carry on with them to hand over with each other, then tell Hibernate to keep。 So, a great deal of pack hold out for long time turn operation of business logic no longer demand write a trivial JDBC language sentence, make data last long thus the layer got biggest of simplification。 

6、Use Hibernate and Struts to develop J2EE application

 Development practice underneath combine a development practice, with in the J2 the EE the application very widespread customer register process for example, elucidation above-mentioned system structure is how concrete usage。 The process of register is very clear: Customer from register page login。jsp importation register information, system to register the information carry on verification, if exactitude success register, otherwise hint correspond mistake information。 In the development process, the usage Eclipse be used as development environment and added to carry to provide to the Struts and the Hibernate in the meantime better control and support of three square plug-in MyEclipse, Web server usage Tomcat, the database chose to use Mysql。 Carry on an allocation to the Hibernate first, need to the system auto the born hibernate。cfg。 xml carry on modification, allocation good database conjunction of various parameter and definition the data reflect to shoot a document。 Because the Hibernate take of conjunction pond main used for test, the function isn't very good, can pass JNDI will it modification is usage Tomcat of conjunction pond。

7、Summary

In this paper, we introduced the Struts application framework。 And introduces some basic knowledge about Spring and Hibernate,。 We also show how to use Hibernate and Struts development J2EE, and how it used to be servlets and JSP in combination in the same application。 Now that you have a taste of the Strtus Web application, after that we will dig deeper into the theory and practice behind the Struts architecture。

B。英文原文翻译

基于SSH的web技术介绍

1、引言 

随着Java技术的逐渐成熟与完善,作为建立企业级应用的标准平台,J2EE平台得到了长足的发展。借助于J2EE规范中包含的多项技术:Enterprise JavaBean(EJB)、Java Servlets(Servlet)、Java Server Pages(JSP)、Java Message Service(JMS)等,开发出了许多应用系统。但是,在传统J2EE应用的开发过程中也出现了一些问题:

1)数据模型和逻辑模型之间的矛盾。目前使用的数据库基本上都是关系型数据库,而Java本质上是一种面向对象的语言,对象在存储和读取时使用SQL和JDBC进行数据库操作,降低了编程的效率以及系统的可维护性。

上一篇:系统开发生命周期英文文献和中文翻译
下一篇:RP对不满足设计的RC结构的抗震加固英文文献和中文翻译

移动码头的泊位分配问题英文文献和中文翻译

纤维素增强的淀粉-明胶聚...

多极化港口系统的竞争力外文文献和中文翻译

阻尼减震平台的设计英文文献和中文翻译

超精密自由抛光的混合机...

旋转式伺服电机的柔性电...

过程约束优化数控机床的...

STC89C52单片机NRF24L01的无线病房呼叫系统设计

提高教育质量,构建大學生...

酵母菌发酵生产天然香料...

浅谈高校行政管理人员的...

基于Joomla平台的计算机学院网站设计与开发

压疮高危人群的标准化中...

上海居民的社会参与研究

AES算法GPU协处理下分组加...

浅论职工思想政治工作茬...

从政策角度谈黑龙江對俄...