Skip to content
This repository has been archived by the owner on Oct 4, 2018. It is now read-only.

Proposal SQL generation

sebersole edited this page Nov 29, 2012 · 3 revisions

Currently Hibernate generates SQL in a number of different ways. The main generators of SQL include:

  • Loader subclasses based on the JoinWalker subclasses
  • HQL query parser/translator
  • Criteria translator

Obviously, doing the same basic thing in 3 or more places is not ideal. Additionally, another huge limitation is that the current atomic piece to SQL generation is String manipulation based on fragments which has all kinds of drawbacks.

The basic proposal here is to move to an AST based approach to generating SQL.

This proposal has a high correlation to the Loader redesign proposal.

More to come...