diff --git a/querydsl-docs/src/main/docbook/content/general/configuration.xml b/querydsl-docs/src/main/docbook/content/general/configuration.xml index 932202d23..e9b63ebb2 100644 --- a/querydsl-docs/src/main/docbook/content/general/configuration.xml +++ b/querydsl-docs/src/main/docbook/content/general/configuration.xml @@ -312,5 +312,45 @@ public class QTimestamp extends PDateTime { ]]> + + + + Query type generation for not annotated types + + + It is possible to create Querydsl query types for not annotated types by creating @QueryEntities annotations. + Just place a QueryEntities annotation into a package of your choice and the classes to mirrored in the value attribute. + + + To actually create the types use the com.mysema.query.apt.QuerydslAnnotationProcessor. In Maven you do it like this : + + + + + ... + + com.mysema.maven + maven-apt-plugin + 0.3.2 + + + + process + + + target/generated-sources/java + com.mysema.query.apt.QuerydslAnnotationProcessor + + + + + ... + + + +]]> + + \ No newline at end of file diff --git a/querydsl-docs/src/main/docbook/content/tutorials/sql.xml b/querydsl-docs/src/main/docbook/content/tutorials/sql.xml index 179b34a3b..66b83c7d2 100644 --- a/querydsl-docs/src/main/docbook/content/tutorials/sql.xml +++ b/querydsl-docs/src/main/docbook/content/tutorials/sql.xml @@ -364,6 +364,10 @@ new CreateTableClause(conn, templates, "statement") Using Data manipulation commands + All the DMLClause implementation in the Querydsl SQL module take three parameters, the Connection, the SQLTemplates instance + used in the queries and the main entity the DMLClause is bound to. + + Insert examples : Batch support in DML clauses - TODO + Querydsl SQL supports usage of JDBC batch updates through the DML APIs. If you have consecutive DML calls with a similar structure, + you can bundle the the calls via addBatch() usage into one DMLClause. See the examples how it works for UPDATE, DELETE and INSERT.