Font Size: a A A

Paper Center Management System Design Based On Hibernate

Posted on:2009-01-20Degree:MasterType:Thesis
Country:ChinaCandidate:Y Q WangFull Text:PDF
GTID:2178360272476644Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the rapid development of the Internet and electronic business applications, the dynamic web technology is becoming increasingly popular. The development of Java is the hottest topic in the research and development of Web applications, and the simplified J2EE is obviously the most popular one among the hottest topics due to its easy development and convenient application. When developing large-scale Web application systems and programs, the simplified J2EE applications using Struts, Hibernate, and Spring is gaining more and more popularity among Java programmer and developers. Struts is an open source web application framework that can help Web developers develop web applications quickly and easily. Hibernate is an open source object-relational mapping framework, and it provides a simplified package for JDBC making it very easy for Java programmers to make arbitrary use of object-oriented programming ideas to manage database. Spring is an open source framework, the core of which is an IoC container with strong capacity. In addition, it provides support for AOP.The purpose of this paper was to study how to use Struts and Hibernate components to build a web application framework. Using Struts can help realize multi-layer web applications'capacity. Using Hibernate can help converse Java objects and databases and its mapping objects feature can help facilitate the development of applications systems using mapping objects model.The paper first thoroughly investigated the Struts framework and Hibernate technology. Secondly, it analyzed the capacity to manage the thesis center. It provided a detailed analysis and design for the system using UML modeling language, including case analysis, applications flow, and database design. Thirdly, it built a framework for the thesis center management system, using Spring, Struts, and Hibernate technology, which provided presentation layer, business logic layer, and data access layer-related categories. The thesis center management system based on this application framework can help unify programming connections and automate applications. In the end, the thesis completed this thesis center management system, and provided detailed applications of the Struts framework and the Hibernate technology.Hibernate technology is essential for such systems. It serves as the persistence state of the system to complete Java objects and database conversion. In other words, it operates the addition, removal, revisions, and search functions for the database. The emergence of Hibernate revolutionizes software design methodology, and makes it very convenient for us to develop application systems using mapping objects design technique.With the persistence state secured, next comes the technique for presentation layer. The interface presented in this thesis employs the most popular Struts to date, and completes the communication with users with the support of Javascript.In between the persistence layer and the presentation layer exists a business logic layer. This layer plays a simple role due to its easy functionality and simple business logic, and it completes its function in the Struts'action.At present, most of the popular databases are relational databases and they are different from the structural programming technique. Java language is object-oriented programming language. It is an important topic for developers to study how to combine both.Although Java language database query provides a standard connection—JDBC, it is a complicated job to converse Java objects to executable database SQL languages. Thus it became a major task for earlier Java software development. In addition, the program developed using this technology is not very stable and difficult to maintain.With the combination of Hibernate and ORM, the situation is getting better. Users can easily set up the connection between Java objects and database. It reduces the development workload because the Java operation can help complete various operations with the databases. Thus, it is important to pay more attention to business logic related development efforts to achieve the stability of Java objects.The system used in the design is object-oriented design methods. However, due to the simplicity of the system's function, the design is simplified and it omits some minor processes.This application program starts with discussion of the persistence layer in the application. The design, analysis, and completion of the persistence layer objects require multiple steps. The following sections provide detailed descriptions of those steps.The first step is to understand how to determine the Business Entities of an application program. In the process of analyzing the business entities, a series of conceptual models will be developed to present those business entities and their properties. Those models are called domain models. Then Java language is used to achieve this domain model; that is to develop a persistent layer Java object for each business entity.The second step is to complete the definition of mapping objects. The main function of mapping objects is to describe the persistent layer Java objects and their properties as well as the database table and the relationship between the fields of the table. With this, Hibernate could automatically establish the association between the Java objects and database tables, thus realizing the conversion between them.The following step is to define and develop DAO. Through the DAO, the persistent operations of databases will be completed, and some business logic required in the development stage will be realized as well.The final step is to develop the presentation layer. Struts will be used to complete the user interface and call the DAO to complete the data query and persistence.This paper focuses on the general process of project development. The function of the project itself is not very developed, but it has the general framework for the system. Other functions can be added using the same model. With some simple modifications, it can have many applications. Due to the author's limited expertise and experience, the system has some limitations and needs improvement. The application of Struts and Hibernate frameworks is limited to simple applications. Both frameworks have limitations. With the increase of the actions and business entities of the web, the difficulty level also increases for profile setup and management. The integrated framework presented in this paper can continue to expand, for example, using Spring framework in the business layer, and so on.More research is needed for the persistence layer technology, too. Hibernate technology's application is becoming more and more popular and its strong capacity needs to be further investigated. Future research is needed to study and further understand about Struts and Hibernate technologies, especially how they can be integrated with Spring framework.
Keywords/Search Tags:Web application, Hibernate, Struts, MyEclipse, paper management
PDF Full Text Request
Related items