Merge pull request #1849 from teleivo/TRUNK-4936 TRUNK-4936 Fix integration-test on h2 due to liquibase changeset
teleivo <mrteleivo@gmail.com>
29a68fde91fd901b7ce371b9f83bf5946dcf3de1
TRUNK-4936 Fix integration-test on h2 due to liquibase changeset
Some integration-test's failed on h2 due to the introduced liquibase changeset
for TRUNK-4936. ALTER TABLE sql statement generated by h2 contains a
syntax error. h2 does only seem to handle unique constraints well when
creating the table, or on its own and not when adding the column.
* remove the nested <constraints> element from the changeset
* use addColumn and addUniqueConstraint
Merge pull request #1848 from teleivo/TRUNK-4953
ConceptSourceValidator doesnt fail on empty description - TRUNK-4953
teleivo <mrteleivo@gmail.com>
904d65a85cc01d6f9bc117ca86886a803ed34cac
TRUNK-4953 ConceptSourceValidator doesnt fail on empty description
Fixes ConceptSourceValidator which does not fail if "description" is
empty altough the description column is required.
* add not-null="true" to name and description fields in ConceptSource.hbm.xml
* Validator now fails on empty "description"
* add description in a ConceptServiceTest so it doesnt fail
Merge pull request #1846 from teleivo/TRUNK-4936 TRUNK-4936 Add ConceptSource.uniqueId
teleivo <mrteleivo@gmail.com>
4b9ca17a19a6d1486384333ab978365e7465bfc8
TRUNK-4936 Add ConceptSource.uniqueId
* add ConceptSource.uniqueId
* add property to hibernate mapping file ConceptSource.hbm.xml
* ensure ConceptSourceValidator validates max conceptId length
* add liquibase changeset adding the column concept_source.unique_id
with unique constraint (but defaults to null)
* add service method to ConceptService with implementation in
ConceptServiceImpl
* add ConceptDAO method with HibernateDAO implementation
* add tests for the service layer
* add the official registered OID of "SNOMED CT" into its unique_id
column in the standardTestDataset.xml so it can be used in tests