Changeset 4135 for trunk/doc/src/docbook/appendix/incompatible.xml
- Timestamp:
- Feb 8, 2008, 3:03:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/src/docbook/appendix/incompatible.xml
r4131 r4135 132 132 where the <code>int</code> is the sub-array index value for 133 133 the raw bioassay. 134 </para> 135 136 <para> 137 A related issue ariese when querying labeled extracts and joining 138 the source events collection to use the linked hybridizations in 139 the query. Here is an example: 140 </para> 141 142 <programlisting language="java"> 143 <![CDATA[ 144 // Find all labeled extracts on a given hybridization 145 Hybridization current = ... 146 ItemQuery<LabeledExtract> labeledExtractQuery = LabeledExtract.getQuery(); 147 148 // This no longer works 149 // labeledExtractQuery.join(Hql.innerJoin("sourceEvents", "evt")); 150 151 // Replace the above line with these two line 152 labeledExtractQuery.join(Hql.innerJoin("sourceEvents", "srcevt")); 153 labeledExtractQuery.join(Hql.innerJoin("srcevt", "event", "evt")); 154 155 labeledExtractQuery.restrict( 156 Restrictions.eq( 157 Hql.property("evt", "hybridization"), 158 Expressions.integer(current.getId()) 159 ) 160 ); 161 ]]> 162 </programlisting> 163 164 <para> 165 The good new is that the modifcations makes it possible to filter 166 the query on used quantity and sub-array. See the javadoc for 167 <classname docapi="net.sf.basedb.core">Hybridization</classname> 168 to get more information. 134 169 </para> 135 170
Note: See TracChangeset
for help on using the changeset viewer.