How to create a new TermVocabulary

  1. Create a CSV file with at least the line for the vocabulary and store it along with the other terms (trunk/cdmlib/cdmlib-model/src/main/resources/terms)
  2. Create a class for the vocabulary (Example: Language.java)
  3. Add it to hibernate configuration hibernate.cfg.xml
  4. Add it to VocabularyEnum.java

But! For the testsuite to work, the test data has to be updated as well. Open TermsDataSet-with_auditing_info.xml. Searching for the string "TERMVOCABULARY" will get you to the right location in the file. Add a new line for your vocabulary. E.g.:

<TERMVOCABULARY DTYPE="$$[Ordered]TermVocabulary$$" ID="$$increment the highest TermVocabulary id$$" CREATED="$$date of creation$$" UUID="$$unique UUID of your term vocabulary$$" URI="" TERMSOURCEURI="$$URI of your class. E.g. eu.etaxonomy.cdm.model.common.Language$$"/>

Repeat for "TERMVOCABULARY_AUD" accordingly.