Ignore:
Timestamp:
Feb 8, 2008, 3:03:25 PM (15 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #868: Support for chips with multiple arrays

Found an incompatibility issue in the web client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/src/docbook/appendix/incompatible.xml

    r4131 r4135  
    132132      where the <code>int</code> is the sub-array index value for
    133133      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
     145Hybridization current = ...
     146ItemQuery<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
     152labeledExtractQuery.join(Hql.innerJoin("sourceEvents", "srcevt"));
     153labeledExtractQuery.join(Hql.innerJoin("srcevt", "event", "evt"));
     154
     155labeledExtractQuery.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.
    134169    </para>
    135170   
Note: See TracChangeset for help on using the changeset viewer.