关键词:Hibernate,对象关系映射,数据持久层,J2EE,ITIL
Application of Hibernate in ITSM System
Abstract
In information age,information is the most important factor for development in every area.It is possible to share information among different organizations with the improvement of network.In fact,what shared in information is basically data.Data is the very direct representation of information resources.So,in order to realize data-sharing,data should not only be visited,but also be perdure.Work ing with object-oriented software and a relational database can becumbersome and time consuming in today's enterprise environments. Hibemate is an object/relational mapping tool for Java environments. The term object/relational mapping (ORM) refers to the technique of mapping a data representation from an object model to a relational data model with a SQL based schema. Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data types), but also provides data query and retrieval facilities and can significantly reduce development time otherwise spent with manual data handling in SQL and JDBC.
In this paper,firstly,objects and object-oriented methods are in troduced,and discussion
of the conceptions and methods for objects persistence are referred.The principle, structure, mechanism, application of design patterns and etc of a component designed and implemented by author are introduced with emphasis.At the same time, this paper will take ITSM for example and discuss the application of Hibernate.In this case,distinction between description logic and business logic is made possible with in the MVC design patern,which means better flexibility and easier manage ment in the exploration of a system. Results show that this new framework helps to increase work efficiency in exploration. Meanwhile, expansibility and maintainability of the system within this framework are also satisfactory.