Index: ../registry/registry-persistence-service/src/main/resources/liquibase/master.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- ../registry/registry-persistence-service/src/main/resources/liquibase/master.xml	(revision 3340)
+++ ../registry/registry-persistence-service/src/main/resources/liquibase/master.xml	(revision )
@@ -218,6 +218,13 @@
         ALTER TABLE agent ADD CONSTRAINT type_alias UNIQUE (type,alias);
       ]]>
     </sql>
-  </changeSet>    
+  </changeSet>
+  <changeSet id="drop-identifier-source" author="kyle">
+    <sql splitStatements="true">
+      <![CDATA[
+	    	ALTER TABLE identifier drop column source;
+	    ]]>
+    </sql>
+  </changeSet>
 
 </databaseChangeLog>
Index: ../registry/registry-persistence-service/src/test/java/org/gbif/registry/mybatis/IdentifierMapperTestIT.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- ../registry/registry-persistence-service/src/test/java/org/gbif/registry/mybatis/IdentifierMapperTestIT.java	(revision 3340)
+++ ../registry/registry-persistence-service/src/test/java/org/gbif/registry/mybatis/IdentifierMapperTestIT.java	(revision )
@@ -37,7 +37,6 @@
     Identifier identifier = new Identifier();
     identifier.setId(457L);
     identifier.setIdentifier("13714");
-    identifier.setSource("GBIF-PORTAL");
     identifier.setType(TYPE_CONVERTER.fromEnum(IdentifierType.GBIF_PORTAL));
 
     Agent agent = new Agent();
Index: ../registry/registry-persistence-service/src/test/resources/dbunit/agents.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- ../registry/registry-persistence-service/src/test/resources/dbunit/agents.xml	(revision 3340)
+++ ../registry/registry-persistence-service/src/test/resources/dbunit/agents.xml	(revision )
@@ -622,66 +622,66 @@
   <service id="2215" uuid="20149baf-4d9c-42be-850e-652f8e99e0ac" service_type_id="16120" url="http://db01.nlbif.sara.nl/tapir/tapir.php/naturalis_coelenterata" agent_id="855" created="2011-03-11 14:13:01.0" modified="2011-03-11 14:13:01.0"/>
   <service id="2216" uuid="d446a1a9-622f-4218-b23d-71d7427af020" service_type_id="16120" url="http://db01.nlbif.sara.nl/tapir/tapir.php/naturalis_cenozoic_mollusca" agent_id="861" created="2011-03-11 14:15:53.0" modified="2011-03-11 14:15:53.0"/>
   <service id="2217" uuid="1579511f-8512-4fe4-8fa2-bc728e94997d" service_type_id="16120" url="http://db01.nlbif.sara.nl/tapir/tapir.php/naturalis_poriferafossils" agent_id="860" created="2011-03-11 14:18:02.0" modified="2011-03-11 14:18:02.0"/>
-  <identifier id="1" identifier="wdcbe" source="" agent_id="1" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="2" identifier="sp2000" source="" agent_id="2" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="3" identifier="us" source="" agent_id="3" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="4" identifier="icipe" source="" agent_id="4" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="5" identifier="mx" source="" agent_id="5" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="6" identifier="itis" source="" agent_id="6" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="7" identifier="gh" source="" agent_id="7" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="8" identifier="es" source="" agent_id="8" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="9" identifier="bionet" source="" agent_id="9" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="10" identifier="gb" source="" agent_id="10" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="11" identifier="mg" source="" agent_id="11" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="12" identifier="wst" source="" agent_id="12" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="13" identifier="iczn" source="" agent_id="13" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="14" identifier="at" source="" agent_id="14" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="15" identifier="de" source="" agent_id="15" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="16" identifier="ar" source="" agent_id="16" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="17" identifier="jp" source="" agent_id="17" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="18" identifier="gn" source="" agent_id="18" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="19" identifier="aseanet" source="" agent_id="19" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="20" identifier="fs" source="" agent_id="20" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="21" identifier="se" source="" agent_id="21" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="22" identifier="bf" source="" agent_id="22" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="23" identifier="ch" source="" agent_id="23" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="24" identifier="cabi" source="" agent_id="24" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="25" identifier="obis" source="" agent_id="25" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="26" identifier="bj" source="" agent_id="26" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="27" identifier="id" source="" agent_id="27" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="28" identifier="sk" source="" agent_id="28" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="29" identifier="co" source="" agent_id="29" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="30" identifier="pk" source="" agent_id="30" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
-  <identifier id="50104" identifier="82" source="GBIF-PORTAL" agent_id="301" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50169" identifier="140" source="GBIF-PORTAL" agent_id="303" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50170" identifier="141" source="GBIF-PORTAL" agent_id="305" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50171" identifier="142" source="GBIF-PORTAL" agent_id="306" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50172" identifier="143" source="GBIF-PORTAL" agent_id="307" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50173" identifier="144" source="GBIF-PORTAL" agent_id="309" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50174" identifier="145" source="GBIF-PORTAL" agent_id="310" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50175" identifier="146" source="GBIF-PORTAL" agent_id="312" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50176" identifier="147" source="GBIF-PORTAL" agent_id="318" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50178" identifier="148" source="GBIF-PORTAL" agent_id="317" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50179" identifier="149" source="GBIF-PORTAL" agent_id="319" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50180" identifier="150" source="GBIF-PORTAL" agent_id="320" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50181" identifier="151" source="GBIF-PORTAL" agent_id="321" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50182" identifier="152" source="GBIF-PORTAL" agent_id="322" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50184" identifier="155" source="GBIF-PORTAL" agent_id="325" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50185" identifier="156" source="GBIF-PORTAL" agent_id="327" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50186" identifier="157" source="GBIF-PORTAL" agent_id="329" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50259" identifier="235" source="GBIF-PORTAL" agent_id="314" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50265" identifier="241" source="GBIF-PORTAL" agent_id="311" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50277" identifier="253" source="GBIF-PORTAL" agent_id="304" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50278" identifier="254" source="GBIF-PORTAL" agent_id="323" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50279" identifier="255" source="GBIF-PORTAL" agent_id="328" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50281" identifier="257" source="GBIF-PORTAL" agent_id="324" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50282" identifier="258" source="GBIF-PORTAL" agent_id="330" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50287" identifier="297" source="GBIF-PORTAL" agent_id="302" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50300" identifier="277" source="GBIF-PORTAL" agent_id="326" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50317" identifier="298" source="GBIF-PORTAL" agent_id="313" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50322" identifier="303" source="GBIF-PORTAL" agent_id="316" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50325" identifier="307" source="GBIF-PORTAL" agent_id="300" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
-  <identifier id="50331" identifier="313" source="GBIF-PORTAL" agent_id="315" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="1" identifier="wdcbe" agent_id="1" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="2" identifier="sp2000" agent_id="2" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="3" identifier="us" agent_id="3" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="4" identifier="icipe" agent_id="4" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="5" identifier="mx" agent_id="5" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="6" identifier="itis" agent_id="6" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="7" identifier="gh" agent_id="7" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="8" identifier="es" agent_id="8" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="9" identifier="bionet" agent_id="9" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="10" identifier="gb" agent_id="10" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="11" identifier="mg" agent_id="11" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="12" identifier="wst" agent_id="12" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="13" identifier="iczn" agent_id="13" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="14" identifier="at" agent_id="14" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="15" identifier="de" agent_id="15" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="16" identifier="ar" agent_id="16" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="17" identifier="jp" agent_id="17" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="18" identifier="gn" agent_id="18" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="19" identifier="aseanet" agent_id="19" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="20" identifier="fs" agent_id="20" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="21" identifier="se" agent_id="21" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="22" identifier="bf" agent_id="22" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="23" identifier="ch" agent_id="23" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="24" identifier="cabi" agent_id="24" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="25" identifier="obis" agent_id="25" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="26" identifier="bj" agent_id="26" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="27" identifier="id" agent_id="27" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="28" identifier="sk" agent_id="28" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="29" identifier="co" agent_id="29" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="30" identifier="pk" agent_id="30" created="2010-05-04 00:02:21.0" modified="2010-05-04 00:02:21.0" identifier_type="2009"/>
+  <identifier id="50104" identifier="82" agent_id="301" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50169" identifier="140" agent_id="303" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50170" identifier="141" agent_id="305" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50171" identifier="142" agent_id="306" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50172" identifier="143" agent_id="307" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50173" identifier="144" agent_id="309" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50174" identifier="145" agent_id="310" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50175" identifier="146" agent_id="312" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50176" identifier="147" agent_id="318" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50178" identifier="148" agent_id="317" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50179" identifier="149" agent_id="319" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50180" identifier="150" agent_id="320" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50181" identifier="151" agent_id="321" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50182" identifier="152" agent_id="322" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50184" identifier="155" agent_id="325" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50185" identifier="156" agent_id="327" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50186" identifier="157" agent_id="329" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50259" identifier="235" agent_id="314" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50265" identifier="241" agent_id="311" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50277" identifier="253" agent_id="304" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50278" identifier="254" agent_id="323" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50279" identifier="255" agent_id="328" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50281" identifier="257" agent_id="324" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50282" identifier="258" agent_id="330" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50287" identifier="297" agent_id="302" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50300" identifier="277" agent_id="326" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50317" identifier="298" agent_id="313" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50322" identifier="303" agent_id="316" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50325" identifier="307" agent_id="300" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
+  <identifier id="50331" identifier="313" agent_id="315" created="2011-11-15 00:00:00.0" modified="2011-11-15 00:00:00.0" identifier_type="2009"/>
   <agent_relation id="88" relation_type_id="15000" has_accepted="true" from_agent_id="15" to_agent_id="310" created="2010-05-04 00:02:00.0" modified="2010-05-04 00:02:00.0"/>
   <agent_relation id="89" relation_type_id="15000" has_accepted="true" from_agent_id="15" to_agent_id="311" created="2010-05-04 00:02:00.0" modified="2010-05-04 00:02:00.0"/>
   <agent_relation id="90" relation_type_id="15000" has_accepted="true" from_agent_id="15" to_agent_id="325" created="2010-05-04 00:02:00.0" modified="2010-05-04 00:02:00.0"/>
\ No newline at end of file
Index: ../registry/registry-persistence-service/src/main/java/org/gbif/registry/model/Identifier.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- ../registry/registry-persistence-service/src/main/java/org/gbif/registry/model/Identifier.java	(revision 3340)
+++ ../registry/registry-persistence-service/src/main/java/org/gbif/registry/model/Identifier.java	(revision )
@@ -13,7 +13,6 @@
   private static final long serialVersionUID = 7081541400222071988L;
 
   private String identifier;
-  private String source;
   private Agent agent;
   private int type;
 
@@ -24,8 +23,8 @@
         return false;
       }
       Identifier that = (Identifier) object;
-      return Objects.equal(this.identifier, that.identifier) && Objects.equal(this.source, that.source)
-        && Objects.equal(this.agent, that.agent) && Objects.equal(this.type, that.type);
+      return Objects.equal(this.identifier, that.identifier) && Objects.equal(this.agent, that.agent) && Objects
+        .equal(this.type, that.type);
     }
     return false;
   }
@@ -46,13 +45,6 @@
   }
 
   /**
-   * @return the source
-   */
-  public String getSource() {
-    return source;
-  }
-
-  /**
    * @return the identifierType
    */
   public int getType() {
@@ -61,7 +53,7 @@
 
   @Override
   public int hashCode() {
-    return Objects.hashCode(super.hashCode(), identifier, source, agent, type);
+    return Objects.hashCode(super.hashCode(), identifier, agent, type);
   }
 
   /**
@@ -80,13 +72,6 @@
   }
 
   /**
-   * @param source the source to set
-   */
-  public void setSource(String source) {
-    this.source = source;
-  }
-
-  /**
    * @param type the identifierType to set
    */
   public void setType(int type) {
@@ -96,7 +81,7 @@
   @Override
   public String toString() {
     return Objects.toStringHelper(this).add("super", super.toString()).add("identifier", identifier)
-      .add("source", source).add("agent", agent).add("type", type).toString();
+      .add("agent", agent).add("type", type).toString();
   }
 
 
Index: ../registry/registry-persistence-service/src/test/java/org/gbif/registry/util/MockBeansFactory.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- ../registry/registry-persistence-service/src/test/java/org/gbif/registry/util/MockBeansFactory.java	(revision 3340)
+++ ../registry/registry-persistence-service/src/test/java/org/gbif/registry/util/MockBeansFactory.java	(revision )
@@ -3,7 +3,9 @@
 import org.gbif.api.model.registry.graph.EntityType;
 import org.gbif.api.vocabulary.ContactType;
 import org.gbif.api.vocabulary.EndpointType;
+import org.gbif.api.vocabulary.IdentifierType;
 import org.gbif.api.vocabulary.RelationType;
+import org.gbif.mybatis.type.IdentifierTypeConverter;
 import org.gbif.registry.model.Agent;
 import org.gbif.registry.model.AgentRelation;
 import org.gbif.registry.model.BaseDataObject;
@@ -21,6 +23,8 @@
 
 public class MockBeansFactory {
 
+  private static final IdentifierTypeConverter IDENTIFIER_TYPE_CONVERTER = new IdentifierTypeConverter();
+
   /**
    * Private default constructor.
    */
@@ -114,7 +118,7 @@
 
   private static void fillMockIdentifier(Identifier identifier) {
     identifier.setIdentifier(randomstring(10, 100));
-    identifier.setSource(randomstring(2, 50));
+    identifier.setType(IDENTIFIER_TYPE_CONVERTER.fromEnum(IdentifierType.GBIF_PORTAL));
   }
 
   private static void fillMockMetadataProperty(MetadataProperty metadataProperty) {
Index: ../registry/registry-persistence-service/src/main/resources/org/gbif/registry/mybatis/mapper/IdentifierMapper.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- ../registry/registry-persistence-service/src/main/resources/org/gbif/registry/mybatis/mapper/IdentifierMapper.xml	(revision 3340)
+++ ../registry/registry-persistence-service/src/main/resources/org/gbif/registry/mybatis/mapper/IdentifierMapper.xml	(revision )
@@ -64,7 +64,6 @@
   <resultMap id="ResultMapIdentifier" type="org.gbif.registry.model.Identifier" >
     <id column="id" property="id" jdbcType="INTEGER" />
     <result column="identifier" property="identifier" jdbcType="VARCHAR" />
-    <result column="source" property="source" jdbcType="VARCHAR" />
     <result column="created" property="created" jdbcType="TIMESTAMP" />
     <result column="modified" property="modified" jdbcType="TIMESTAMP" />
     <result column="deleted" property="deleted" jdbcType="TIMESTAMP" />
@@ -72,10 +71,10 @@
     <association property="agent" column="agent_id" javaType="org.gbif.registry.model.Agent" select="org.gbif.registry.mybatis.mapper.AgentMapper.selectByPrimaryKey"/>
   </resultMap>
   <sql id="Base_Column_List" >
-    id, identifier, source, agent_id, created, modified, identifier_type, deleted
+    id, identifier, agent_id, created, modified, identifier_type, deleted
   </sql>
   <sql id="Base_Column_List_Prefix" >
-    i.id, i.identifier, i.source, i.agent_id, i.created, i.modified, i.identifier_type, i.deleted
+    i.id, i.identifier, i.agent_id, i.created, i.modified, i.identifier_type, i.deleted
   </sql>  
   <select id="selectByExample" resultMap="ResultMapIdentifier" parameterType="org.gbif.registry.mybatis.model.BaseExample" >
     select
@@ -112,10 +111,10 @@
     where id = #{id,jdbcType=INTEGER}
   </update>
   <insert id="insert" parameterType="org.gbif.registry.model.Identifier" keyProperty="id" useGeneratedKeys="true">
-    insert into identifier (identifier, source,
+    insert into identifier (identifier,
       agent_id, created, modified,
       identifier_type, deleted)
-    values (#{identifier,jdbcType=VARCHAR}, #{source,jdbcType=VARCHAR},
+    values (#{identifier,jdbcType=VARCHAR},
       #{agent.id,jdbcType=INTEGER}, #{created,jdbcType=TIMESTAMP}, #{modified,jdbcType=TIMESTAMP},
       #{type,jdbcType=INTEGER}, #{deleted,jdbcType=TIMESTAMP})
   </insert>
@@ -125,9 +124,6 @@
       <if test="identifier != null" >
         identifier,
       </if>
-      <if test="source != null" >
-        source,
-      </if>
       <if test="agent != null  and agent.id != null" >
         agent_id,
       </if>
@@ -148,9 +144,6 @@
       <if test="identifier != null" >
         #{identifier,jdbcType=VARCHAR},
       </if>
-      <if test="source != null" >
-        #{source,jdbcType=VARCHAR},
-      </if>
       <if test="agent != null and agent.id != null" >
         #{agent.id,jdbcType=INTEGER},
       </if>
@@ -183,9 +176,6 @@
       <if test="record.identifier != null" >
         identifier = #{record.identifier,jdbcType=VARCHAR},
       </if>
-      <if test="record.source != null" >
-        source = #{record.source,jdbcType=VARCHAR},
-      </if>
       <if test="record.agent != null and record.agent.id != null" >
         agent_id = #{record.agent.id,jdbcType=INTEGER},
       </if>
@@ -210,7 +200,6 @@
     update identifier
     set id = #{record.id,jdbcType=INTEGER},
       identifier = #{record.identifier,jdbcType=VARCHAR},
-      source = #{record.source,jdbcType=VARCHAR},
       agent_id = #{record.agent.id,jdbcType=INTEGER},
       created = #{record.created,jdbcType=TIMESTAMP},
       modified = #{record.modified,jdbcType=TIMESTAMP},
@@ -226,9 +215,6 @@
       <if test="identifier != null" >
         identifier = #{identifier,jdbcType=VARCHAR},
       </if>
-      <if test="source != null" >
-        source = #{source,jdbcType=VARCHAR},
-      </if>
       <if test="agent != null and agent.id != null" >
         agent_id = #{agent.id,jdbcType=INTEGER},
       </if>
@@ -250,7 +236,6 @@
   <update id="updateByPrimaryKey" parameterType="org.gbif.registry.model.Identifier" >
     update identifier
     set identifier = #{identifier,jdbcType=VARCHAR},
-      source = #{source,jdbcType=VARCHAR},
       agent_id = #{agent.id,jdbcType=INTEGER},
       modified = #{modified,jdbcType=TIMESTAMP},
       identifier_type = #{type,jdbcType=INTEGER},
\ No newline at end of file
