updated docs

This commit is contained in:
Timo Westkämper 2010-08-28 16:36:01 +00:00
parent 614fbdc26d
commit 21c44b85d0
2 changed files with 46 additions and 1 deletions

View File

@ -312,5 +312,45 @@ public class QTimestamp extends PDateTime<java.sql.Timestamp> {
]]></programlisting>
</sect2>
<sect2>
<title>Query type generation for not annotated types</title>
<para>
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.
</para>
<para>To actually create the types use the com.mysema.query.apt.QuerydslAnnotationProcessor. In Maven you do it like this :</para>
<programlisting language="xml"><![CDATA[
<project>
<build>
<plugins>
...
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>maven-apt-plugin</artifactId>
<version>0.3.2</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>target/generated-sources/java</outputDirectory>
<processor>com.mysema.query.apt.QuerydslAnnotationProcessor</processor>
</configuration>
</execution>
</executions>
</plugin>
...
</plugins>
</build>
</project>
]]></programlisting>
</sect2>
</sect1>

View File

@ -364,6 +364,10 @@ new CreateTableClause(conn, templates, "statement")
<title>Using Data manipulation commands</title>
<para>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.
</para>
<para>Insert examples :</para>
<programlisting language="java"><![CDATA[
@ -423,7 +427,8 @@ new SQLDelecteClause(conn, dialect, survey)
<title>Batch support in DML clauses</title>
<para>TODO</para>
<para>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.</para>
<programlisting language="java"><![CDATA[