When using a view and fields with different names than in the original entity, the model was taking the original names so this could lead to warnings

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1077940 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erwan de Ferrieres
2011-03-04 13:36:11 +00:00
parent fba839327f
commit cfe25142ae
@@ -791,7 +791,7 @@ public class GenericEntity extends Observable implements Map<String, Object>, Lo
keyBuffer.append('.');
keyBuffer.append(name);
// finish off by adding the values of all PK fields
Iterator<ModelField> iter = modelEntityToUse.getPksIterator();
Iterator<ModelField> iter = modelEntity.getPksIterator();
while (iter != null && iter.hasNext()) {
ModelField curField = iter.next();
keyBuffer.append('.');