@Repository public interface SystemTemplateRepository extends TemplateRepository<System,SystemTemplate>
| Modifier and Type | Method and Description |
|---|---|
SystemTemplate |
findByIdOnly(BigInteger id) |
List<SystemTemplate> |
findByParentID(Object parentId) |
List<SystemTemplate> |
findByParentIDAndName(Object parentId,
String name) |
List<SystemTemplate> |
findByParentName(String name) |
Collection<SystemTemplate> |
findByParentNameAndProject(String name,
BigInteger projectId) |
List<IdNamePair> |
findByPieceOfNameAndParentId(String name,
BigInteger parentId) |
Collection<SystemTemplate> |
findByPieceOfNameAndProject(String name,
BigInteger projectId) |
List<SystemTemplate> |
findSimpleSystemTemplatesByParentId(BigInteger parentId) |
findUsagesOnOutboundDiameterConfiguration, getAllLabelscount, 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 systemTemplate from SystemTemplate as systemTemplate inner join System as system on system = systemTemplate.parent where systemTemplate.name = :name and system.ID = :parentId") List<SystemTemplate> findByParentIDAndName(@Param(value="parentId") Object parentId, @Param(value="name") String name)
findByParentIDAndName in interface StorableRepository<SystemTemplate>@Query(value="select template.* from mb_templates template where template.type = \'system\' and template.parent_system_id = :parentId",
nativeQuery=true)
List<SystemTemplate> findByParentID(@Param(value="parentId")
Object parentId)
findByParentID in interface StorableRepository<SystemTemplate>@Query(value="select new org.qubership.automation.itf.core.model.jpa.message.template.SystemTemplate(systemTemplate.id, systemTemplate.name) from SystemTemplate as systemTemplate where systemTemplate.parent.id = :parentId") List<SystemTemplate> findSimpleSystemTemplatesByParentId(@Param(value="parentId") BigInteger parentId)
@Query(value="select systemTemplate from SystemTemplate as systemTemplate inner join System as system on system = systemTemplate.parent where system.name = :name") List<SystemTemplate> findByParentName(@Param(value="name") String name)
findByParentName in interface StorableRepository<SystemTemplate>@Query(value="select t from SystemTemplate as t where lower(t.name) like concat(\'%\', lower(:name), \'%\') and t.projectId = :projectId") Collection<SystemTemplate> findByPieceOfNameAndProject(@Param(value="name") String name, @Param(value="projectId") BigInteger projectId)
@Query(value="select new org.qubership.automation.itf.core.model.IdNamePair(sysTemplate.id, sysTemplate.name) from SystemTemplate as sysTemplate where lower(sysTemplate.name) like concat(\'%\', lower(:name), \'%\') and sysTemplate.parent.id = :parentId") List<IdNamePair> findByPieceOfNameAndParentId(@Param(value="name") String name, @Param(value="parentId") BigInteger parentId)
@Query(value="select template from SystemTemplate template inner join System as system on system = template.parent where lower(system.name) like concat(\'%\', lower(:name), \'%\') and system.projectId = :projectId") Collection<SystemTemplate> findByParentNameAndProject(@Param(value="name") String name, @Param(value="projectId") BigInteger projectId)
@Query(value="select t from SystemTemplate as t where id = :id")
@QueryHints(value={@QueryHint(name="org.hibernate.cacheable",value="true"),})
SystemTemplate findByIdOnly(@Param(value="id")
BigInteger id)
Copyright © 2025. All rights reserved.