Anonymous M2 constraint name should be stored with resolved namespace prefix (of its property) - fix for model activation in MT env (e.g. bootstrap workflow models)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6711 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2007-09-10 11:34:40 +00:00
parent e22575b74e
commit c730f41aba

View File

@@ -104,7 +104,7 @@ import org.springframework.beans.PropertyAccessException;
// pick the name up from the property and some anonymous value // pick the name up from the property and some anonymous value
String localName = m2PropertyDef.getName().getLocalName() + "_anon_" + (++anonPropCount); String localName = m2PropertyDef.getName().getLocalName() + "_anon_" + (++anonPropCount);
this.name = QName.createQName(m2PropertyDef.getName().getNamespaceURI(), localName); this.name = QName.createQName(m2PropertyDef.getName().getNamespaceURI(), localName);
m2Constraint.setName(localName); m2Constraint.setName(this.name.getPrefixedQName(prefixResolver).toPrefixString());
} }
else else
{ {