The Hibernate Framework Query Mechanisms Comparison
Tisinee Surapunt, Chartchai Doungsa-ard · Lecture Notes on Software Engineering · 2014
database entity object cannot be mapped directly. To solve the problem, ORM framework is proposed. The ORM framework (2) is the automatic tool which maps the structures of the classes in the application, and the tables in DMBS automatically. There are several ORM frameworks such as myBatis (3), JPA (4), (5) and Hibernate (6). Among all, Hibernate framework is used widely because of its data query facilities. There are 3 query methods for the Hibernate framework which are Hibernate Query Language (HQL), Criteria API and Query for Native SQL. These query techniques are used to reduce the complexity of SQL commands and provide the object liked query. The key of using the Hibernate in the application is not only its convenient, but also the effectiveness. There are several key factors which relate to the performance of the Hibernate application such as the amount of query records and the cache technology (7). In this study, the other factors, which may affect the query time, are investigated. The different Hibernate query mechanisms are focused in the different scenario. In Section II, the works related with the Hibernate performance analysis are discussed. The experimental design is described in Section III. The preliminary result and discussion are presented in Section IV. Finally, Section V is the conclusion and future work.