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结构的抗震加固英文文献和中文翻译

数控机床制造过程的碳排...

新的数控车床加工机制英文文献和中文翻译

抗震性能的无粘结后张法...

锈蚀钢筋的力学性能英文文献和中文翻译

未加筋的低屈服点钢板剪...

汽车内燃机连杆载荷和应...

审计的优化管理英文文献和中文翻译

张洁小说《无字》中的女性意识

麦秸秆还田和沼液灌溉对...

我国风险投资的发展现状问题及对策分析

网络语言“XX体”研究

老年2型糖尿病患者运动疗...

ASP.net+sqlserver企业设备管理系统设计与开发

互联网教育”变革路径研究进展【7972字】

LiMn1-xFexPO4正极材料合成及充放电性能研究

新課改下小學语文洧效阅...

安康汉江网讯