lib/export/jhipster_entity_exporter.js
function exportEntities(passedConfiguration) {
  init(passedConfiguration);
  createJHipsterJSONFolder(
    passedConfiguration.application.forSeveralApplications ? configuration.application.name : ''
  );
  if (!configuration.forceNoFiltering) {
    filterOutUnchangedEntities();
  }
  if (shouldFilterOutEntitiesBasedOnMicroservice()) {
    filterOutEntitiesByMicroservice();
  }
  writeEntities(passedConfiguration.application.forSeveralApplications ? configuration.application.name : '');
  return Object.values(configuration.entities);
}
function exportEntities(passedConfiguration) {
  init(passedConfiguration);
  createJHipsterJSONFolder(
    passedConfiguration.application.forSeveralApplications ? configuration.application.name : ''
  );
  if (!configuration.forceNoFiltering) {
    filterOutUnchangedEntities();
  }
  if (shouldFilterOutEntitiesBasedOnMicroservice()) {
    filterOutEntitiesByMicroservice();
  }
  writeEntities(passedConfiguration.application.forSeveralApplications ? configuration.application.name : '');
  return Object.values(configuration.entities);
}
function exportEntities ( passedConfiguration ) { init ( passedConfiguration ) ; createJHipsterJSONFolder ( passedConfiguration . application . forSeveralApplications ? configuration . application . name : '' ) ; if ( ! configuration . forceNoFiltering ) { filterOutUnchangedEntities ( ) ; } if ( shouldFilterOutEntitiesBasedOnMicroservice ( ) ) { filterOutEntitiesByMicroservice ( ) ; } writeEntities ( passedConfiguration . application . forSeveralApplications ? configuration . application . name : '' ) ; return Object . values ( configuration . entities ) ; }
Exports the passed entities to JSON.
@param passedConfiguration the object having the keys:
- entities: the entity objects to export (key: entity name, value: the entity),
- forceNoFiltering: whether to filter out unchanged entities,
- application:
- forSeveralApplications: whether more than one application have to be generated,
- name: application base name,
- type: application type
@returns The exported entities.
Exports the passed entities to JSON .