Ignore:
Timestamp:
Aug 7, 2015, 8:34:06 AM (7 years ago)
Author:
Nicklas Nordborg
Message:

References #1941: Store experimental factor values as part experiments

Removing the annotation on a parent item will nullify the link from cloned annotations instead of removing the clones.

Other changes are related to fixing various NullPointerExceptions and other problems resulting from having "inherited" annotations without a parent item.

But more work is needed on this since the cloned annotations now end up in a state that is almost impossible to manage via the gui. The "batch inherit annotations" can be used to remove or update cloned annotation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/common-queries.xml

    r6920 r6937  
    19581958  </query>
    19591959 
     1960  <query id="NULLIFY_LINK_FROM_CLONES" type="HQL">
     1961    <sql>
     1962      UPDATE AnnotationData ad
     1963      SET ad.inheritedFrom = null
     1964      WHERE ad.inheritedFrom = :targetId
     1965      AND ad.source = 2
     1966    </sql>
     1967    <description>
     1968      A HQL query that nullify the link from all cloned annotations
     1969      to a specified target annotation.
     1970    </description>
     1971  </query>
     1972 
    19601973  <query id="UPDATE_BYTES_FOR_EXPERIMENT" type="HQL">
    19611974    <sql>
Note: See TracChangeset for help on using the changeset viewer.