Proposal SQL generation
Clone this wiki locally
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...