Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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...