]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5907: Remove legacy resources/db directory from ID service source code tree.
authorAron Roberts <aron@socrates.berkeley.edu>
Sun, 24 Feb 2013 00:47:56 +0000 (16:47 -0800)
committerAron Roberts <aron@socrates.berkeley.edu>
Sun, 24 Feb 2013 00:47:56 +0000 (16:47 -0800)
services/id/build.xml
services/id/service/build.xml
services/id/service/src/main/resources/db/mysql/create_id_generators_table.sql [deleted file]
services/id/service/src/main/resources/db/mysql/load_id_generators.sql [deleted file]
services/id/service/src/main/resources/db/postgresql/create_id_generators_table.sql [deleted file]
services/id/service/src/main/resources/db/postgresql/load_id_generators.sql [deleted file]

index b8077a6854b4de76e65303ffeb0b0cc28fc2172f..1837be17fbcf10a54253510c0791a8ba37255630 100644 (file)
         <copy todir="${services.trunk}/${dist.installer.services}/id">\r
             <fileset dir="${basedir}/installer/"/>\r
         </copy>\r
-        <!-- copy db scripts, etc. -->\r
-        <copy todir="${services.trunk}/${dist.installer.services}/id/db/mysql">\r
-            <fileset dir="${src}/main/resources/db/mysql"/>\r
-        </copy>\r
     </target>\r
 \r
 </project>\r
index 4b27ad5ac3438675368b14681421195c22af3832..75638886813b9ad772b48d4b1f9d3505adfcdf36 100644 (file)
 
     <target name="create_nuxeo_db"
     description="create tables(s), indices for id service">
-       <!-- No longer required since we are doing this work at system startup
-                               <sql driver="${db.jdbc.driver.class}"
-            url="${db.jdbc.nuxeo.url}"
-            userid="${db.nuxeo.user}"
-            password="${db.nuxeo.user.password}"
-                                               src="${db.script.dir}/create_id_generators_table.sql" >
-            <classpath>
-                <pathelement path="${db.driver.jar}"/>
-            </classpath>
-        </sql>
-                               <sql driver="${db.jdbc.driver.class}"
-            url="${db.jdbc.nuxeo.url}"
-            userid="${db.nuxeo.user}"
-            password="${db.nuxeo.user.password}"
-            src="${db.script.dir}/load_id_generators.sql" >
-            <classpath>
-                <pathelement path="${db.driver.jar}"/>
-            </classpath>
-        </sql>
-               -->
+       <!-- No longer required since we are doing this work at system startup -->
     </target>
 
     <target name="deploy" depends="install"
     description="deploy id service">
-        <copy todir="${jee.server.cspace}/cspace/services">
-            <fileset dir="${src}/main/resources/"/>
-        </copy>
     </target>
 
     <target name="undeploy"
 
     <target name="dist" depends="package"
     description="generate distribution for id">
-        <!-- copy db scripts, etc. -->
-        <copy todir="${services.trunk}/${dist.server.cspace}/cspace/services">
-            <fileset dir="${src}/main/resources/"/>
-        </copy>
     </target>
 
 </project>
diff --git a/services/id/service/src/main/resources/db/mysql/create_id_generators_table.sql b/services/id/service/src/main/resources/db/mysql/create_id_generators_table.sql
deleted file mode 100644 (file)
index 57b950e..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*     
- * This document is a part of the source code and related artifacts
- * for CollectionSpace, an open source collections management system
- * for museums and related institutions:
- *
- * http://www.collectionspace.org
- * http://wiki.collectionspace.org
- *
- * Copyright © 2009 Regents of the University of California
- *
- * Licensed under the Educational Community License (ECL), Version 2.0.
- * You may not use this file except in compliance with this License.
- *
- * You may obtain a copy of the ECL 2.0 License at
- * https://source.collectionspace.org/collection-space/LICENSE.txt
- */
-
-/*
- * create_id_generators_table.sql
- *
- * Creates the "id_generators" table, used by the ID Service,
- * and sets the access permissions of that table.
- *
- * $LastChangedRevision$
- * $LastChangedDate$
- */
-
-DROP TABLE IF EXISTS `id_generators`;
-CREATE TABLE `id_generators` (
-  `csid`                varchar(80) PRIMARY KEY,
-  `displayname`         varchar(80),
-  `description`         varchar(500),
-  `priority`            smallint(1) DEFAULT 9 NOT NULL,
-  `id_generator_state`  varchar(8000) NOT NULL,
-  `last_generated_id`   varchar(255),
-  `modified`            timestamp NOT NULL
-                        default CURRENT_TIMESTAMP
-                        on update CURRENT_TIMESTAMP,
-  INDEX `csid_index` (`csid`)
-) ENGINE=InnoDB;
-
-
-SHOW WARNINGS;
diff --git a/services/id/service/src/main/resources/db/mysql/load_id_generators.sql b/services/id/service/src/main/resources/db/mysql/load_id_generators.sql
deleted file mode 100644 (file)
index 2cadf18..0000000
+++ /dev/null
@@ -1,640 +0,0 @@
-/*     
- * This document is a part of the source code and related artifacts
- * for CollectionSpace, an open source collections management system
- * for museums and related institutions:
- *
- * http://www.collectionspace.org
- * http://wiki.collectionspace.org
- *
- * Copyright © 2009 Regents of the University of California
- *
- * Licensed under the Educational Community License (ECL), Version 2.0.
- * You may not use this file except in compliance with this License.
- *
- * You may obtain a copy of the ECL 2.0 License at
- * https://source.collectionspace.org/collection-space/LICENSE.txt
- */
-
-/*
- * load_id_generators_table.sql
- *
- * Loads a default set of data into the "id_generators" table,
- * used by the ID Service.
- *
- * $LastChangedRevision$
- * $LastChangedDate$
- */
-
-/*
- * Note: in the priority column, values range from  '1' (highest)
- * to '9' (lowest).
- */
-
-/*
- * NOTE: In the id_generator_state column, for numeric sequence parts
- * whose first generated value should start at the initial value
- * (such as '1'), enter '-1' for the <currentValue>
- *
- * Otherwise, the first generated value will be the next value
- * in the sequence after the initial value (e.g. '2', if the
- * initial value is '1').
- */
-
--- ACCESSION_LOT_NUMBER
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('1a67470b-19b1-4ae3-88d4-2a0aa936270e',
-     'Accession Activity Number',
-     'Identifies accession activities, in which a lot of
-one or more collection objects is acquired by the institution.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- ACCESSION_NUMBER
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('9dd92952-c384-44dc-a736-95e435c1759c',
-     'Accession Number',
-     'Identifies individual collection objects formally
-acquired by the institution. Used for collection objects
-without parts.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- ARCHIVES_NUMBER
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('70586d30-9dca-4a07-a3a2-1976fe898028',
-     'Archives Number',
-     'Identifies archives-related accession activities,
-in which a lot of one or more collection objects is formally
-acquired for the archives.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>AR</initialValue>
-      <currentValue>AR</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- EVALUATION_NUMBER
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('d2d80822-25c7-4c7c-a105-fc40cdb0c50f',
-     'Evaluation Number',
-     'Identifies evaluation-related intake activities,
-in which a lot of one or more collection objects is formally
-acquired for evaluation.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>EV</initialValue>
-      <currentValue>EV</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- INTAKE_NUMBER
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('8088cfa5-c743-4824-bb4d-fb11b12847f7',
-     'Intake Number',
-     'Identifies intake activities, in which a lot of one
-or more collection objects enters the institution.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-   <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>IN</initialValue>
-      <currentValue>IN</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- INTAKE_OBJECT_NUMBER
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('a91db555-5c53-4996-9918-6712351397a0',
-     'Intake Object Number',
-     'Identifies individual collection objects that enter
-the institution through intake activities, before they are 
-either returned to their owner or formally acquired.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>IN</initialValue>
-      <currentValue>IN</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- INVENTORY_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('6d472be6-2534-47f3-a3f1-3f160e7a9303',
-     'Inventory Number',
-     'Unambiguously identifies a location associated with an inventory event.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>INV</initialValue>
-      <currentValue>INV</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- LIBRARY_NUMBER
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('80fedaf6-1647-4f30-9f53-a75a3cac2ffd',
-     'Library Number',
-     'Identifies library-related accession activities,
-in which a lot of one or more collection objects is
-formally acquired for the library.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-   <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>LIB</initialValue>
-      <currentValue>LIB</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- LOANS_IN_NUMBER
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('ed87e7c6-0678-4f42-9d33-f671835586ef',
-     'Loan In Number',
-     'Identifies activities in which collection objects are
-received on loan.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>LI</initialValue>
-      <currentValue>LI</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- LOANS_OUT_NUMBER
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('4b984865-f93d-4481-b874-3dba863ec589',
-     'Loan Out Number',
-     'Identifies activities in which collection objects are
-loaned out of the institution.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>LO</initialValue>
-      <currentValue>LO</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- LOCATION_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('1fc5e383-0786-4126-9a3c-ec7df4517ee3',
-     'Location Number',
-     'Unambiguously identifies a general location, not associated with an
-inventory or movement event.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>LOC</initialValue>
-      <currentValue>LOC</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- MEDIA_RESOURCE_IDENTIFICATION_NUMBER
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('cd91d8b8-f346-4925-a425-93e02bd1c5c9',
-     'Media Resource Identification Number',
-     'Unambiguously identifies a media resource within a given context.
-Recommended best practice is to identify the resource by means of a string
-conforming to a formal identification system.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>MR</initialValue>
-      <currentValue>MR</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- MOVEMENT_REFERENCE_NUMBER
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('49ca9d8d-7136-47ff-a70e-4a47b9038b70',
-     'Movement Reference Number',
-     'Identifies a movement of a collection object or a group of collection objects.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>MV</initialValue>
-      <currentValue>MV</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- OBJECT_EXIT_NUMBER
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('d4eea707-d473-4367-853a-728fbcd9be17',
-     'Object Exit Number',
-     'Identifies an exit from the museum of collection objects, via
-transfer or destruction, and the deaccessioning of those objects
-from the museum\'s collections.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>EX</initialValue>
-      <currentValue>EX</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- STUDY_NUMBER
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('0518132e-dd8c-4773-8fa9-07c9af4444ee',
-     'Study Number',
-     'Identifies study-related intake activities,
-in which a lot of one or more collection objects is
-formally acquired for study.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-   <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>ST</initialValue>
-      <currentValue>ST</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- TRANSFER_OF_TITLE_NUMBER
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('c597a209-5954-4fa6-bf3f-f83c1a0ad586',
-     'Transfer of Title Number',
-     'Identifies the transfer of title for one or more collection objects
-to a receiving institution.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>TT</initialValue>
-      <currentValue>TT</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- UUID
-
-/*
- * Note: these are Type 4 UUIDs, whose generation is based on
- * random and pseudo-random parts.
- */
-
-INSERT INTO `id_generators`
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('1fa40353-05b8-4ae6-82a6-44a18b4f3c12',
-     'UUID',
-     'Universally unique identifiers (UUIDs), which may be
-used for CollectionSpace IDs (CSIDs) and any other relevant
-purposes.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.UUIDGeneratorPart>
-    </org.collectionspace.services.id.UUIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
-SHOW WARNINGS;
diff --git a/services/id/service/src/main/resources/db/postgresql/create_id_generators_table.sql b/services/id/service/src/main/resources/db/postgresql/create_id_generators_table.sql
deleted file mode 100644 (file)
index 23f58c0..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*     
- * This document is a part of the source code and related artifacts
- * for CollectionSpace, an open source collections management system
- * for museums and related institutions:
- *
- * http://www.collectionspace.org
- * http://wiki.collectionspace.org
- *
- * Copyright © 2009 Regents of the University of California
- *
- * Licensed under the Educational Community License (ECL), Version 2.0.
- * You may not use this file except in compliance with this License.
- *
- * You may obtain a copy of the ECL 2.0 License at
- * https://source.collectionspace.org/collection-space/LICENSE.txt
- */
-
-/*
- * create_id_generators_table.sql
- *
- * Creates the "id_generators" table, used by the ID Service,
- * and sets the access permissions of that table.
- *
- * $LastChangedRevision$
- * $LastChangedDate$
- */
-
-DROP TABLE IF EXISTS id_generators;
-CREATE TABLE id_generators
-(
-  csid character varying(80) NOT NULL,
-  displayname character varying(80),
-  description character varying(500),
-  priority integer NOT NULL DEFAULT 9,
-  id_generator_state character varying(8000) NOT NULL,
-  last_generated_id character varying(255),
-  modified timestamp without time zone NOT NULL DEFAULT now(),
-  CONSTRAINT id_generators_pkey PRIMARY KEY (csid)
-) WITH (
-  OIDS=FALSE -- See http://www.postgresql.org/docs/8.4/static/sql-createtable.html
-);
-
--- CREATE UNIQUE INDEX csid_idx ON id_generators USING btree (csid);
-CREATE OR REPLACE FUNCTION update_modified_column()
-RETURNS TRIGGER AS 'BEGIN NEW.modified = now(); RETURN NEW; END;' language 'plpgsql';
-
-CREATE TRIGGER update_customer_modtime BEFORE UPDATE
-        ON id_generators FOR EACH ROW EXECUTE PROCEDURE 
-        update_modified_column();
-
diff --git a/services/id/service/src/main/resources/db/postgresql/load_id_generators.sql b/services/id/service/src/main/resources/db/postgresql/load_id_generators.sql
deleted file mode 100644 (file)
index 47b69b9..0000000
+++ /dev/null
@@ -1,639 +0,0 @@
-/*     
- * This document is a part of the source code and related artifacts
- * for CollectionSpace, an open source collections management system
- * for museums and related institutions:
- *
- * http://www.collectionspace.org
- * http://wiki.collectionspace.org
- *
- * Copyright © 2009 Regents of the University of California
- *
- * Licensed under the Educational Community License (ECL), Version 2.0.
- * You may not use this file except in compliance with this License.
- *
- * You may obtain a copy of the ECL 2.0 License at
- * https://source.collectionspace.org/collection-space/LICENSE.txt
- */
-
-/*
- * load_id_generators_table.sql
- *
- * Loads a default set of data into the "id_generators" table,
- * used by the ID Service.
- *
- * $LastChangedRevision$
- * $LastChangedDate$
- */
-
-/*
- * Note: in the priority column, values range from  '1' (highest)
- * to '9' (lowest).
- */
-
-/*
- * NOTE: In the id_generator_state column, for numeric sequence parts
- * whose first generated value should start at the initial value
- * (such as '1'), enter '-1' for the <currentValue>
- *
- * Otherwise, the first generated value will be the next value
- * in the sequence after the initial value (e.g. '2', if the
- * initial value is '1').
- */
-
--- ACCESSION_LOT_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('1a67470b-19b1-4ae3-88d4-2a0aa936270e',
-     'Accession Activity Number',
-     'Identifies accession activities, in which a lot of
-one or more collection objects is acquired by the institution.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- ACCESSION_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('9dd92952-c384-44dc-a736-95e435c1759c',
-     'Accession Number',
-     'Identifies individual collection objects formally
-acquired by the institution. Used for collection objects
-without parts.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- ARCHIVES_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('70586d30-9dca-4a07-a3a2-1976fe898028',
-     'Archives Number',
-     'Identifies archives-related accession activities,
-in which a lot of one or more collection objects is formally
-acquired for the archives.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>AR</initialValue>
-      <currentValue>AR</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- EVALUATION_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('d2d80822-25c7-4c7c-a105-fc40cdb0c50f',
-     'Evaluation Number',
-     'Identifies evaluation-related intake activities,
-in which a lot of one or more collection objects is formally
-acquired for evaluation.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>EV</initialValue>
-      <currentValue>EV</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- INTAKE_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('8088cfa5-c743-4824-bb4d-fb11b12847f7',
-     'Intake Number',
-     'Identifies intake activities, in which a lot of one
-or more collection objects enters the institution.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-   <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>IN</initialValue>
-      <currentValue>IN</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- INTAKE_OBJECT_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('a91db555-5c53-4996-9918-6712351397a0',
-     'Intake Object Number',
-     'Identifies individual collection objects that enter
-the institution through intake activities, before they are 
-either returned to their owner or formally acquired.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>IN</initialValue>
-      <currentValue>IN</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- INVENTORY_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('6d472be6-2534-47f3-a3f1-3f160e7a9303',
-     'Inventory Number',
-     'Unambiguously identifies a location associated with an inventory event.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>INV</initialValue>
-      <currentValue>INV</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- LIBRARY_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('80fedaf6-1647-4f30-9f53-a75a3cac2ffd',
-     'Library Number',
-     'Identifies library-related accession activities,
-in which a lot of one or more collection objects is
-formally acquired for the library.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-   <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>LIB</initialValue>
-      <currentValue>LIB</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- LOANS_IN_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('ed87e7c6-0678-4f42-9d33-f671835586ef',
-     'Loan In Number',
-     'Identifies activities in which collection objects are
-received on loan.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>LI</initialValue>
-      <currentValue>LI</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- LOANS_OUT_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('4b984865-f93d-4481-b874-3dba863ec589',
-     'Loan Out Number',
-     'Identifies activities in which collection objects are
-loaned out of the institution.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>LO</initialValue>
-      <currentValue>LO</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- LOCATION_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('1fc5e383-0786-4126-9a3c-ec7df4517ee3',
-     'Location Number',
-     'Unambiguously identifies a general location, not associated with an
-inventory or movement event.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>LOC</initialValue>
-      <currentValue>LOC</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- MEDIA_RESOURCE_IDENTIFICATION_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('cd91d8b8-f346-4925-a425-93e02bd1c5c9',
-     'Media Resource Identification Number',
-     'Unambiguously identifies a media resource within a given context.
-Recommended best practice is to identify the resource by means of a string
-conforming to a formal identification system.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>MR</initialValue>
-      <currentValue>MR</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- MOVEMENT_REFERENCE_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('49ca9d8d-7136-47ff-a70e-4a47b9038b70',
-     'Movement Reference Number',
-     'Identifies a movement of a collection object or a group of collection objects.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>MV</initialValue>
-      <currentValue>MV</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- OBJECT_EXIT_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('d4eea707-d473-4367-853a-728fbcd9be17',
-     'Object Exit Number',
-     'Identifies an exit from the museum of collection objects, via
-transfer or destruction, and the deaccessioning of those objects
-from the museum''s collections.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>EX</initialValue>
-      <currentValue>EX</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- STUDY_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('0518132e-dd8c-4773-8fa9-07c9af4444ee',
-     'Study Number',
-     'Identifies study-related intake activities,
-in which a lot of one or more collection objects is
-formally acquired for study.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-   <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>ST</initialValue>
-      <currentValue>ST</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- TRANSFER_OF_TITLE_NUMBER
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES
-    ('c597a209-5954-4fa6-bf3f-f83c1a0ad586',
-     'Transfer of Title Number',
-     'Identifies the transfer of title for one or more collection objects
-to a receiving institution.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>TT</initialValue>
-      <currentValue>TT</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.YearIDGeneratorPart>
-      <currentValue></currentValue>
-    </org.collectionspace.services.id.YearIDGeneratorPart>
-    <org.collectionspace.services.id.StringIDGeneratorPart>
-      <initialValue>.</initialValue>
-      <currentValue>.</currentValue>
-    </org.collectionspace.services.id.StringIDGeneratorPart>
-    <org.collectionspace.services.id.NumericIDGeneratorPart>
-      <maxLength>6</maxLength>
-      <initialValue>1</initialValue>
-      <currentValue>-1</currentValue>
-    </org.collectionspace.services.id.NumericIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-
--- UUID
-
-/*
- * Note: these are Type 4 UUIDs, whose generation is based on
- * random and pseudo-random parts.
- */
-
-INSERT INTO id_generators
-    (csid, displayname, description, priority, last_generated_id, id_generator_state)
-  VALUES 
-    ('1fa40353-05b8-4ae6-82a6-44a18b4f3c12',
-     'UUID',
-     'Universally unique identifiers (UUIDs), which may be
-used for CollectionSpace IDs (CSIDs) and any other relevant
-purposes.',
-     '9',
-     '',
-'<org.collectionspace.services.id.SettableIDGenerator>
-  <parts>
-    <org.collectionspace.services.id.UUIDGeneratorPart>
-    </org.collectionspace.services.id.UUIDGeneratorPart>
-  </parts>
-</org.collectionspace.services.id.SettableIDGenerator>');
-