[jboss-cvs] JBossAS SVN: r105550 - projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jun 2 01:16:44 EDT 2010
Author: misty at redhat.com
Date: 2010-06-02 01:16:44 -0400 (Wed, 02 Jun 2010)
New Revision: 105550
Modified:
projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Hsearch.xml
Log:
JBPAPP-4387
Modified: projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Hsearch.xml
===================================================================
--- projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Hsearch.xml 2010-06-02 04:25:47 UTC (rev 105549)
+++ projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Hsearch.xml 2010-06-02 05:16:44 UTC (rev 105550)
@@ -26,7 +26,7 @@
Hibernate Search configuration has sensible defaults for most configuration parameters. The following is an example of a minimal persistence unit configuration:
</para>
-<programlisting role="XML"><![CDATA[<persistence-unit name="sample">
+<programlisting language="XML" role="XML"><![CDATA[<persistence-unit name="sample">
<jta-data-source>java:/DefaultDS</jta-data-source>
<properties>
[...]
@@ -106,7 +106,7 @@
When Hibernate Search is present, JBoss Seam injects a <classname>FullTextSession</classname>:
</para>
-<programlisting role="JAVA"><![CDATA[@Stateful
+<programlisting language="Java" role="JAVA">@Stateful
@Name("search")
public class FullTextSearchAction implements FullTextSearch, Serializable {
@@ -122,7 +122,7 @@
.list();
}
[...]
-}]]>
+}
</programlisting>
<note>
<para>
@@ -133,7 +133,7 @@
A smoother integration is proposed if the JPA is used:
</para>
-<programlisting role="JAVA"><![CDATA[@Stateful
+<programlisting language="Java" role="JAVA">@Stateful
@Name("search")
public class FullTextSearchAction implements FullTextSearch, Serializable {
@In FullTextEntityManager em;
@@ -147,7 +147,7 @@
.getResultList();
}
[...]
-}]]>
+}
</programlisting>
<para>
Here, a <classname>FulltextEntityManager</classname> is injected where Hibernate Search is present. <classname>FullTextEntityManager</classname> extends <classname>EntityManager</classname> with search specific methods, the same way <classname>FullTextSession</classname> extends <classname>Session</classname>.
@@ -156,7 +156,7 @@
When an EJB 3.0 Session or Message Driven Bean injection is used (that is, where injection uses the <literal>@PersistenceContext</literal> annotation), the <classname>EntityManager</classname> interface cannot be replaced by using the <classname>FullTextEntityManager</classname> interface in the declaration statement. However, the implementation injected will be a <classname>FullTextEntityManager</classname> implementation, which allows downcasting.
</para>
-<programlisting role="JAVA"><![CDATA[@Stateful
+<programlisting language="Java" role="JAVA">@Stateful
@Name("search")
public class FullTextSearchAction implements FullTextSearch, Serializable {
@@ -173,7 +173,7 @@
.getResultList();
}
[...]
-}]]>
+}
</programlisting>
<note>
<para>
More information about the jboss-cvs-commits
mailing list