HHH-8904 minor edits
This commit is contained in:
parent
cba2c0f8b1
commit
8ae122f584
|
@ -1364,17 +1364,17 @@ hibernate.cache.use_structured_entries true</programlisting>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section xml:id="entityentry-lookup-buildtime-instrument">
|
<section xml:id="entityentry-lookup-buildtime-instrument">
|
||||||
<title>Buildtime instrument</title>
|
<title>Build-time instrument</title>
|
||||||
<para>Besides above two approaches, Hibernate also provides you a
|
<para>Besides the above two approaches, Hibernate also provides a
|
||||||
third choice which is build time bytecode enhancement. Applications
|
third choice which is build time bytecode enhancement. Applications
|
||||||
should use enhanced entity classes annotated with either <classname>javax.persistence.Entity</classname>
|
can use enhanced entity classes, annotated with either <classname>javax.persistence.Entity</classname>
|
||||||
or composite <classname>javax.persistence.Embeddable</classname>.
|
or composite <classname>javax.persistence.Embeddable</classname>.
|
||||||
|
|
||||||
<section xml:id="entityentry-lookup-buildtime-instrument-ant">
|
<section xml:id="entityentry-lookup-buildtime-instrument-ant">
|
||||||
<title>Ant Task</title>
|
<title>Ant Task</title>
|
||||||
<para>To use the task <classname>org.hibernate.tool.enhance.EnhancementTask</classname>
|
<para>To use the task <classname>org.hibernate.tool.enhance.EnhancementTask</classname>
|
||||||
define a taskdef and call the task as the example shows. This code uses a
|
define a taskdef and call the task, as shown below. This code uses a
|
||||||
pre defined classpathref and a property referencing the compiled classes
|
pre-defined classpathref and a property referencing the compiled classes
|
||||||
directory.
|
directory.
|
||||||
<programlisting role="XML"><taskdef name="enhance" classname="org.hibernate.tool.enhance.EnhancementTask" classpathref="enhancement.classpath" />
|
<programlisting role="XML"><taskdef name="enhance" classname="org.hibernate.tool.enhance.EnhancementTask" classpathref="enhancement.classpath" />
|
||||||
<enhance>
|
<enhance>
|
||||||
|
@ -1382,8 +1382,9 @@ hibernate.cache.use_structured_entries true</programlisting>
|
||||||
</enhance></programlisting>
|
</enhance></programlisting>
|
||||||
</para>
|
</para>
|
||||||
<note>
|
<note>
|
||||||
<para>The EnhancementTask is intended as a replacement for <link linkend="performance-fetching-lazyproperties">InstrumentTask</link>. It is also incompatible so instrumented classels
|
<para>The EnhancementTask is intended as a total replacement for <link linkend="performance-fetching-lazyproperties">InstrumentTask</link>.
|
||||||
will need building from source again.</para>
|
Further, it is also incompatible with <link linkend="performance-fetching-lazyproperties">InstrumentTask</link>, so any existing instrumented classes
|
||||||
|
will need to be built from source again.</para>
|
||||||
</note>
|
</note>
|
||||||
</section>
|
</section>
|
||||||
<section xml:id="entityentry-lookup-buildtime-instrument-maven">
|
<section xml:id="entityentry-lookup-buildtime-instrument-maven">
|
||||||
|
|
Loading…
Reference in New Issue