PathNode currentPathNode = new PathNode(pathNode.getToken(), currentVariableName); for (int i = 0; i < pathNode.getChildCount(); i++) { String fieldName = pathNode.getChild(i).toString(); Attribute entityAttribute = entity.getAttributeByName(fieldName); if (entityAttribute.isEntityReferenceAttribute() && !entityAttribute.isEmbedded()) {
String fieldName = pathNode.getChild(i).toString(); Attribute entityAttribute = entity.getAttributeByName(fieldName); if (entityAttribute != null && entityAttribute.isEntityReferenceAttribute()) {