Skip to content

Proposal SQL generation

sebersole edited this page · 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...

Something went wrong with that request. Please try again.