# Request to remove readonly contraint from TermBindingItem **Category:** [Reference Implementation: Java (archive)](https://discourse.openehr.org/c/reference-implementation-java-archive/154) **Created:** 2012-09-28 00:19 UTC **Views:** 6 **Replies:** 2 **URL:** https://discourse.openehr.org/t/request-to-remove-readonly-contraint-from-termbindingitem/15208 --- ## Post #1 by @pablo Hi, I'm trying to rewrite the code property in TermBindingItem but I'm getting this exception: groovy.lang.ReadOnlyPropertyException: Cannot set readonly property: code for class: org.openehr.am.archetype.ontology.TermBindingItem Is it possible to remove that contraint? Thanks a lot. --- ## Post #2 by @system Yes, I can remove that\. In general, we are leaving immutable object pattern in AOM\. Cheers, Rong --- ## Post #3 by @pablo Thank you Rong. --- **Canonical:** https://discourse.openehr.org/t/request-to-remove-readonly-contraint-from-termbindingitem/15208 **Original content:** https://discourse.openehr.org/t/request-to-remove-readonly-contraint-from-termbindingitem/15208