message: halmodel is not generating for children entities.
diff: @@ -676,24 +676,28 @@ export class DynamicController {
  var relUrl = {};
  relUrl["href"] = resourceName + "/" + relation.propertyKey;
  model["_links"][relation.propertyKey] = relUrl;
  - var repo = GetRepositoryForName(relation.params.rel);
  - if (repo) {
  - var param = relation.params;
  - if (!param.embedded && !param.eagerLoading) { return model; }
  - if (model[relation.propertyKey] instanceof Array) {
  - if (model[relation.propertyKey] && model[relation.propertyKey].length && Utils.isJSON(model[relation.propertyKey][0])) {
  - model[relation.propertyKey].forEach(key => {
  - var url = this.getFullBaseUrlUsingRepo(req, repo.modelName());
  - this.getHalModel1(key, url + '/' + key['_id'], req, repo);
  - });
  - }
  - } else {
  - if (model[relation.propertyKey] && Utils.isJSON(model[relation.propertyKey])) {
  - var url = this.getFullBaseUrlUsingRepo(req, repo.modelName());
  - this.getHalModel1(model[relation.propertyKey], url + '/' + model[relation.propertyKey]['_id'], req, repo);
  - }
  - }
  - }
  +
  + // [***\ Below code has been commented as we are generating hall model for 1 level entity only not for all its child entities. /***]
  +
  + //var repo = GetRepositoryForName(relation.params.rel);
  + //if (repo) {
  + // var param = relation.params;
  + // if (!param.embedded && !param.eagerLoading) { return model; }
  + // if (model[relation.propertyKey] instanceof Array) {
  + // if (model[relation.propertyKey] && model[relation.propertyKey].length && Utils.isJSON(model[relation.propertyKey][0])) {
  + // model[relation.propertyKey].forEach(key => {
  + // var url = this.getFullBaseUrlUsingRepo(req, repo.modelName());
  + // this.getHalModel1(key, url + '/' + key['_id'], req, repo);
  + // });
  + // }
  + // } else {
  + // if (model[relation.propertyKey] && Utils.isJSON(model[relation.propertyKey])) {
  + // var url = this.getFullBaseUrlUsingRepo(req, repo.modelName());
  + // this.getHalModel1(model[relation.propertyKey], url + '/' + model[relation.propertyKey]['_id'], req, repo);
  + // }
  + // }
  + //}
  +
  });
  return model;
  }
  