[hibernate-commits] Hibernate SVN: r11297 - in trunk/HibernateExt/search: doc/reference/en/modules and 1 other directory.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Mar 19 10:48:13 EDT 2007


Author: epbernard
Date: 2007-03-19 10:48:13 -0400 (Mon, 19 Mar 2007)
New Revision: 11297

Modified:
   trunk/HibernateExt/search/build.xml
   trunk/HibernateExt/search/doc/reference/en/modules/mapping.xml
Log:
@ContainedIn doc
junitsingle use the same cp

Modified: trunk/HibernateExt/search/build.xml
===================================================================
--- trunk/HibernateExt/search/build.xml	2007-03-18 04:10:09 UTC (rev 11296)
+++ trunk/HibernateExt/search/build.xml	2007-03-19 14:48:13 UTC (rev 11297)
@@ -199,18 +199,30 @@
 		<mkdir dir="test_output"/>
 		<junit printsummary="yes" fork="yes" haltonfailure="yes">
 			<classpath>
-				<fileset dir="${jdbc.dir}">
+				<!-- fileset dir="${jdbc.dir}">
 					<include name="**/*.jar"/>
 					<include name="**/*.zip"/>
 				</fileset>
 				<path refid="lib.class.path"/>
 				<pathelement path="${classes.dir}"/>
 				<pathelement path="${src.dir}"/>
-				<!-- pick up properties from here -->
+				< ! - - pick up properties from here - - >
 				<pathelement path="${test.dir}"/>
-				<!-- pick up mappings from here -->
-			</classpath>
-			<formatter type="plain"/>
+				< ! - - pick up mappings from here - - >
+			-->
+                <path path="${build.testresources.dir}"/>
+                <!-- dirset dir="${build.testresources.dir}">
+                    <include name="**/*.jar"/>
+                    <include name="**/*.par"/>
+                </dirset -->
+                <path refid="junit.classpath"/>
+
+                <fileset dir="${jdbc.dir}">
+                    <include name="**/*.jar"/>
+                    <include name="**/*.zip"/>
+                </fileset>
+            </classpath>
+            <formatter type="plain"/>
 			<formatter type="xml"/>
 			<test fork="yes" todir="test_output" haltonfailure="no" name="${testname}"/>
 		</junit>

Modified: trunk/HibernateExt/search/doc/reference/en/modules/mapping.xml
===================================================================
--- trunk/HibernateExt/search/doc/reference/en/modules/mapping.xml	2007-03-18 04:10:09 UTC (rev 11296)
+++ trunk/HibernateExt/search/doc/reference/en/modules/mapping.xml	2007-03-19 14:48:13 UTC (rev 11297)
@@ -155,6 +155,10 @@
 
     <emphasis role="bold">@IndexedEmbedded(depth = 1, prefix = "ownedBy_")</emphasis>
     private Owner ownedBy;
+
+    <emphasis role="bold">@ContainedIn</emphasis>
+    @OneToMany(mappedBy="address")
+    private Set&lt;Place&gt; places;
     ...
 }
 
@@ -235,8 +239,16 @@
 
       <para><note>
           <para>An associated object can itself be (but don't have to)
-          <literal>@Indexed</literal> </para>
+          <literal>@Indexed</literal></para>
         </note></para>
+
+      <para>When @IndexedEmbedded points to an entity, the association has to
+      be directional and the other side has to be annotated
+      <literal>@ContainedIn</literal> (as see in the previous example). If
+      not, Hibernate Search has no way to update the root index when the
+      associated entity is updated (in ou example, a <literal>Place</literal>
+      index document has to be updated when the associated
+      <classname>Address</classname> instance is updated.</para>
     </section>
 
     <section>




More information about the hibernate-commits mailing list