Arek, I should have called it a converter constructor and not a copy
constructor.
The general rule is that types implementing OpenmrsMetadata (e.g.
ConceptClass, ConceptDatatype) are reusable and you must not create
deep copies of them. If you consider ConceptName, ConceptAnswer,
ConceptSet, ConceptDescription, ConceptMap they only belong to one
specific concept so you just need to change the parent object for
them.
ConceptNumericBuilder does not make deep copies of contained objects.
It only copies collections, because they may be backed by Hibernate.
If you just reference such collections from a different object, it
will break them.
-Rafał
> --
> OpenMRS Developers:
http://go.openmrs.org/dev
> Post:
d...@openmrs.org
> Unsubscribe:
dev+uns...@openmrs.org
> Manage your OpenMRS subscriptions at
https://id.openmrs.org/
>
>