SQLEP 2.1.0 Tutorial - hudec/sql-processor GitHub Wiki
###The tutorial is updated for SQLP 2.5.2+, SQLMOP 2.1.0+ and SQLMEP 2.1.0+
###Introduction The SQLEP has been split into 2 specialized plugins
SQLMOP - SQL Processor Model Plugin, devoted to POJO, DAO and APP
SQLMEP - SQL Processor META Plugin, devoted to META SQL
The SQLP, SQLMEP and SQLMOP architecture overview
In these plugins the SQLEP grammar syntax has been completely rewritten. The POJO and DAO modeling syntax is not compatible with the previous versions. The primary goal of this change is to model APP layer. This grammar redefinition is one of more steps toward this goal.
To move grammar closer to Java syntax, we have a new set of
- control directives (common for definitions.model and definitions.meta - descendants of definitions.qry)
- model directives (common for pojo.model and dao.model - descendants of model.qry and meta.qry)
The only artifact, which hasn't been changed, is the grammar for META SQL statements (statements.meta - a descendant of statements.qry)
###Control directives ##Package directives
#ImplementationTODO
##Annotation directives
#ConflictTODO#StaticTODO#ConstructorTODO#StandardTODO#SetterTODO#GetterTODO#AttributeTODO
###Implements directives
#GenericsTODO
###POJO and Enum directives TODO
#ToStringTODO#IndexTODO#OperatorsTODO#SerializableTODO#InheritanceChildTODO#EqualsTODO#HashCodeTODO
###POJO attributes directives
#RequiredTODO#PrimaryKeyTODO#InheritanceDiscriminatorTODO#IndexTODO#VersionTODO#UpdateColTODO#CreateColTODO#ToInitTODO#EnumInitTODO#IsDefTODO#EnumDefTODO
###Enum attributes directives
#ValuesTODO
###DAO directives
#SerializableTODO#InheritanceHandlerTODO#CRUDTODO#QueryTODO#FunctionCallQueryTODO#ProcedureCallQueryTODO#FunctionCallTODO#ProcedureUpdateTODO#FunctionQueryTODO
The sample code can be seen at
- https://github.com/hudec/sql-processor/blob/master/simple-samples/simple-hsqldb/src/main/resources/pojo.qry
- https://github.com/hudec/sql-processor/blob/master/simple-samples/simple-hsqldb/src/main/resources/dao.qry
All the SQLP samples in version 2.4.2 have been rewritten using the new SQLEP grammar.