@NoRepositoryBean public interface TemplateRepository<K extends TemplateProvider,T extends Template<K>> extends StorableRepository<T>, org.springframework.data.querydsl.QuerydslPredicateExecutor<T>, SearchRepository<T>
| Modifier and Type | Method and Description |
|---|---|
List<Map<String,Object>> |
findUsagesOnOutboundDiameterConfiguration(BigInteger templateId,
BigInteger projectId) |
Set<String> |
getAllLabels(BigInteger projectId) |
findByParentID, findByParentIDAndName, findByParentNamecount, exists, findAll, findAll, findAll, findAll, findAll, findBy, findOnefindByNameAndProjectId, findByProjectIdfindByName, findByNameContainingIgnoreCase, findByNaturalIddeleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushfindAll@Query(value="select distinct templ_labels.labels from mb_templates as templates inner join mb_templates_labels as templ_labels on templ_labels.id = templates.id where templates.project_id = :projectId",
nativeQuery=true)
Set<String> getAllLabels(@Param(value="projectId")
BigInteger projectId)
@Query(value="select sys.name as system_name, ser.name as server_name, env.id as env_id, env.name as env_name from mb_configuration conf inner join mb_systems sys on sys.id = conf.system_id inner join mb_servers ser on ser.id = conf.parent_out_server_id inner join mb_env_outbound env_outbound on (env_outbound.systems = conf.system_id and env_outbound.servers = conf.parent_out_server_id) inner join mb_env env on env.id = env_outbound.environment_id where conf.type_name = \'org.qubership.automation.itf.transport.diameter.outbound.DiameterOutbound\' and conf.type = \'outbound\' and sys.project_id = :projectId and ((cast(conf.params as jsonb) @> (cast((concat(\'{\"DPR\":\"\', :templateId, \'\"}\')) as jsonb))) or (cast(conf.params as jsonb) @> (cast((concat(\'{\"dwa\":\"\', :templateId, \'\"}\')) as jsonb))) or (cast(conf.params as jsonb) @> (cast((concat(\'{\"CER\":\"\', :templateId, \'\"}\')) as jsonb))) or (cast(conf.params as jsonb) @> (cast((concat(\'{\"DPA\":\"\', :templateId, \'\"}\')) as jsonb))))",
nativeQuery=true)
List<Map<String,Object>> findUsagesOnOutboundDiameterConfiguration(@Param(value="templateId")
BigInteger templateId,
@Param(value="projectId")
BigInteger projectId)
Copyright © 2025. All rights reserved.