HHH-8904 minor edits
This commit is contained in:
parent
9fe3862e55
commit
43d8751e96
|
@ -1364,17 +1364,17 @@ hibernate.cache.use_structured_entries true</programlisting>
|
|||
</section>
|
||||
|
||||
<section xml:id="entityentry-lookup-buildtime-instrument">
|
||||
<title>Buildtime instrument</title>
|
||||
<para>Besides above two approaches, Hibernate also provides you a
|
||||
<title>Build-time instrument</title>
|
||||
<para>Besides the above two approaches, Hibernate also provides a
|
||||
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>.
|
||||
|
||||
<section xml:id="entityentry-lookup-buildtime-instrument-ant">
|
||||
<title>Ant Task</title>
|
||||
<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
|
||||
pre defined classpathref and a property referencing the compiled classes
|
||||
define a taskdef and call the task, as shown below. This code uses a
|
||||
pre-defined classpathref and a property referencing the compiled classes
|
||||
directory.
|
||||
<programlisting role="XML"><taskdef name="enhance" classname="org.hibernate.tool.enhance.EnhancementTask" classpathref="enhancement.classpath" />
|
||||
<enhance>
|
||||
|
@ -1382,8 +1382,9 @@ hibernate.cache.use_structured_entries true</programlisting>
|
|||
</enhance></programlisting>
|
||||
</para>
|
||||
<note>
|
||||
<para>The EnhancementTask is intended as a replacement for <link linkend="performance-fetching-lazyproperties">InstrumentTask</link>. It is also incompatible so instrumented classels
|
||||
will need building from source again.</para>
|
||||
<para>The EnhancementTask is intended as a total replacement for <link linkend="performance-fetching-lazyproperties">InstrumentTask</link>.
|
||||
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>
|
||||
</section>
|
||||
<section xml:id="entityentry-lookup-buildtime-instrument-maven">
|
||||
|
|
Loading…
Reference in New Issue