Extending HQL with Plain Recursive Facilities

The mismatch between relational databases and object-oriented programming languages has been significantly mitigated by the use of object-relational mapping. However, the querying facilities available in such mapping systems are still inferior when compared to the features of a fully-fledged relational DBMS. In our research we aim at enriching object-relation mapping with advanced database concepts. An example of such an aspect is recursive querying. In prequel papers we have shown how to extend Hibernates mapping configurations with comprehendible recursive views that map to SQL common table expressions. In this paper we show how one can extend Hibernate Query Language (HQL) with plain recursive query facilities based on Oracles CONNECT BY phrase. Although, unfortunately it has not become a part of the SQL standard, its properties like cleanness and guaranteed stop make it worth exploiting.We propose adding CONNECT BY to HQL.We have implemented a prototype mapping of this phrase to recursive queries in major DBMSs and tested its efficiency. As the result we have got a simple, safe and fast way to pose recursive queries in HQL.

[1]  Krzysztof Stencel,et al.  Recursive Query Facilities in Relational Databases: A Survey , 2010, FGIT-DTA/BSBT.

[2]  Wenfei Fan,et al.  Keys with Upward Wildcards for XML , 2001, DEXA.

[3]  Wolfgang Keller Mapping Objects to Tables A Pattern Language , 1997 .

[4]  Marta Burzanska,et al.  Hibernate the Recursive Queries - Defining the Recursive Queries using Hibernate ORM , 2011, ADBIS.

[5]  Dawit Yimam Seid,et al.  Recursive SQL Query Optimization with k-Iteration Lookahead , 2006, DEXA.

[6]  Krzysztof Stencel,et al.  The Impedance Mismatch in Light of the Unified State Model , 2012, Fundam. Informaticae.

[7]  Rozaida Ghazali,et al.  An Improved Back Propagation Neural Network Algorithm on Classification Problems , 2010, FGIT-DTA/BSBT.

[8]  Krzysztof Stencel,et al.  Efficient Implementation of Recursive Queries in Major Object Relational Mapping Systems , 2011, FGIT.

[9]  Christian Bauer,et al.  Java Persistence with Hibernate , 2006 .

[10]  Krzysztof Stencel,et al.  Pushing Predicates into Recursive SQL Common Table Expressions , 2009, ADBIS.

[11]  Daniel M. Brandon,et al.  Recursive database structures , 2005 .

[12]  Fgit,et al.  Future Generation Information Technology, First International Conference, FGIT 2009, Jeju Island, Korea, December 10-12, 2009. Proceedings , 2009, FGIT.

[13]  Krzysztof Stencel,et al.  Recursive Queries Using Object Relational Mapping , 2010, FGIT.

[14]  Elizabeth J. O'Neil,et al.  Object/relational mapping 2008: hibernate and the entity data model (edm) , 2008, SIGMOD Conference.