Templates in your CSP must be included and generated in the following order:
Hbms.cst
Entities.cst
Queries.cst (Optional)