现了对象关系映射ORM介绍了通过PHP实体类中属性映射来简单实现J2EEn Hibernate中的映射的过程。
摘 要 II4本文的创新点在于在系统开发中能够运用MVC模式的思想提出了一个基于MVC模式和三层架构的解决方案。
结合ORM技术设计出了实现数据对象持久化存储大大加强了开发过程中代码的重用性和灵活性。
关键词 B/S PHP MVC模式 AJAX技术 ORM技术Abstract IIIAbstract The Development Framework and Application Based on MVC Mode and Persistence of ORM Object With the development of e-commerce more and more enterprises adopt WEB based system as the platform for the distribution exchange management and trading of information. In the traditional B/S mode the functionalities of the system scatter in the WEB pages provided by the server users can only use them by repeating the procedures including submitting awaiting response and update. The users’ actions are usually synchronized with those of the responses of the services while under the conditions without ideal speed or the server is overloaded the experience of the user would be poor. The presentation layer of the system is on the server and the organization of the interfaces is implemented by the server which makes the load of the performance be placed on the server and can’t take advantage of the effective computational capability of the client computers. Because of the above the value of the development mode based on the combination of WEB application based three-layer structure and MVC mode is clearly revealed. During the research we first studied the function and realization mechanism of MVC mode in Web application development. Then we studied the Web application framework of the combination of MVC mode and ORM technology. Finally a complete solution was given through system framework designing. After it was established the framework was applied to the designing process of software development management system.. This paper mainly studied the following: 1 It analyzed in detail the design thinking of MVC mode intensively studied the working principle and design rationale of PHP framework and its work flow and configuration components. It realized the strict separation of the models and views in the business domain and used controller to control views and models. Consequently it decreased the coupling of system code design and increased the robustness of the system. Abstract IV2 It demonstrated the advantages and disadvantages of several frameworks currently used in Web application development and described the advantages of developing Web application using PHP combining MVC mode and three-layer architecture. It presented realization method of application framework for developing management system. 3 It introduced relationship database models and object models partially implemented ORM in Persistence class and presented the procedure of realizing the mapping in J2EE Hibernate employing the attribute mapping in PHP entity class. 4 The innovation of this paper includes: It presented a solution based on MVC mode and three-layer architecture in system development employing the ideas of MVC mode It realized persistence storage of data object using ORM technology which increased the reusability and flexibility of the code in the procedure of development. Keywords: B/S PHP MVC model AJAXT Technology ORM Techn