mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-06 21:05:50 +08:00
commit
2e7a2c076d
@ -169,7 +169,7 @@
|
||||
metadata to create your Querydsl model.
|
||||
</para>
|
||||
|
||||
<para><code>com.mysema.query.jpa.hibernate.HibernateDomainExporter</code> provides the
|
||||
<para><code>com.mysema.query.jpa.codegen.HibernateDomainExporter</code> provides the
|
||||
functionality for this:</para>
|
||||
|
||||
<programlisting language="java"><![CDATA[
|
||||
|
||||
@ -320,12 +320,6 @@ query.from(person)
|
||||
.list(person)
|
||||
]]></programlisting>
|
||||
|
||||
<para>The main import for Querydsl Scala integration is the following</para>
|
||||
|
||||
<programlisting language="java"><![CDATA[
|
||||
import com.mysema.query.scala.Conversions._
|
||||
]]></programlisting>
|
||||
|
||||
<para>The factory method for query creation is</para>
|
||||
|
||||
<programlisting language="java"><![CDATA[
|
||||
@ -338,6 +332,8 @@ def query() = new JPAQuery(entityManager)
|
||||
val person = Person as "person"
|
||||
]]></programlisting>
|
||||
|
||||
<para>Note: the Scala support is not yet available if you use Hibernate with an XML based configuration. HibernateDomainExporter currently only outputs Java source files.</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
Loading…
Reference in New Issue
Block a user