From 18ba7f8d5421c0f83dc98d6e3e49e4ef677ba375 Mon Sep 17 00:00:00 2001
From: tjc <tjc@ee4ac58c-ac51-4696-9907-e4b3aa274f04>
Date: Tue, 21 Aug 2007 15:59:50 +0000
Subject: [PATCH] add strand information to getResiduesByUniqueName

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@6310 ee4ac58c-ac51-4696-9907-e4b3aa274f04
---
 artemis_sqlmap/Feature.xml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/artemis_sqlmap/Feature.xml b/artemis_sqlmap/Feature.xml
index b8779181c..615449e13 100644
--- a/artemis_sqlmap/Feature.xml
+++ b/artemis_sqlmap/Feature.xml
@@ -80,6 +80,7 @@
    	<result property="seqLen" column="seqLen"/>
     <result property="featureLoc.fmin" column="fmin" nullValue="-1"/>
     <result property="featureLoc.fmax" column="fmax" nullValue="0"/>
+	<result property="featureLoc.strand" column="strand" nullValue="0" />
   </resultMap>
 	   
   <resultMap id="map-similaritymatch" class="Feature" 
@@ -351,7 +352,7 @@
   <select id="getResiduesByUniqueName" parameterClass="java.lang.String"
             resultMap="map-feature-residues">
 	SELECT substr(residues, fl.fmin+1, fl.fmax-fl.fmin) AS residues, 
-	       seqlen AS seqLen, fl.fmin, fl.fmax
+	       seqlen AS seqLen, fl.fmin, fl.fmax, fl.strand
 	FROM featureloc fl 
 	LEFT JOIN feature f ON fl.srcfeature_id=f.feature_id 
 	WHERE fl.feature_id=(SELECT feature_id FROM feature WHERE uniquename=#value#);
-- 
GitLab