In preparation for upgrading to OpenMRS Core 2.1.x we have been doing lots of regression testing and have been having failures when trying to import MDS packages. One error we are seeing is the following:
throw new UnsupportedOperationException("Can't write to a readonly object");
This appears to be happening when trying to save a ConceptDatatype, and looking further I see the following setting in the ConceptDatatype hibernate mapping file:
Not sure what the intent was here, but it looks like if we do want to make ConceptDatatype truly immutable we need to set mutable=false:
Thoug we may just want to set the cache type to “read-write”?