Class ModelRelationService


  • @Service
    @Transactional
    public class ModelRelationService
    extends Object
    Author:
    Joram Barrez
    • Constructor Detail

      • ModelRelationService

        public ModelRelationService()
    • Method Detail

      • findReferencedModels

        public List<ModelInformation> findReferencedModels​(String modelId)
        Returns the models which have a ModelRelation with the given model, where the model references those directly or indirectly. ie modelId here is the parent of the relation.
      • findParentModels

        public List<ModelInformation> findParentModels​(String modelId)
        Returns the models which have a ModelRelation with the given model, where the given model is the one that is referenced. ie modelId is the child of the relation