The problem is that while ProductTypeAttr can be used in this way to constrain the ProductAttribute.attrName values, it shouldn't be enforced unless the data model is also enforcing this constraint.
The other problem is that I think there is no way currently to add ProductTypeAttr records, which means that with these changes no new attributes can be created via the UI.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900992 13f79535-47bb-0310-9956-ffa450edef68