Skip to content
Snippets Groups Projects
Commit bd1ff442 authored by tjc's avatar tjc
Browse files

add selectDbXRef

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@4689 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 21aaadc9
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,15 @@
<result property="dbXRef.version" column="version"/>
</resultMap>
<resultMap id="select-dbxref"
class="DbXRef">
<result property="db" column="db_id" select="selectDb"/>
<result property="accession" column="accession"/>
<result property="version" column="version"/>
<result property="description" column="description"/>
</resultMap>
<select id="getFeatureDbXRef"
parameterClass="uk.ac.sanger.artemis.chado.Feature"
resultMap="select-feature-dbxref">
......@@ -52,13 +61,13 @@
AND db_id=$dbXRefId$;
</select>
<select id="selectDbXRef" resultClass="DbXRef">
<select id="selectDbXRef" resultMap="select-dbxref">
SELECT * FROM dbxref WHERE dbxref_id=$dbXRefId$
</select>
<select id="selectDb" resultClass="Db">
SELECT * FROM db WHERE db_id=$db_id$
</select>
<!-- WRITE BACK -->
<delete id="deleteFeatureDbXRef" parameterClass="FeatureDbXRef">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment