@Repository public interface OperationTemplateRepository extends TemplateRepository<Operation,OperationTemplate>
| Modifier and Type | Method and Description |
|---|---|
OperationTemplate |
findByIdOnly(BigInteger id) |
List<OperationTemplate> |
findByParentID(Object parentId) |
List<OperationTemplate> |
findByParentIDAndName(Object parentId,
String name) |
List<OperationTemplate> |
findByParentName(String name) |
Collection<OperationTemplate> |
findByParentNameAndProject(String name,
BigInteger projectId) |
List<IdNamePair> |
findByPieceOfNameAndParentId(String name,
BigInteger parentId) |
Collection<OperationTemplate> |
findByPieceOfNameAndProject(String name,
BigInteger projectId) |
List<Object[]> |
findIdAndNameByProjectId(BigInteger projectId) |
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 operationTemplate from OperationTemplate as operationTemplate inner join Operation as operation on operation = operationTemplate.parent where operationTemplate.name = :name and operation.ID = :parentId") List<OperationTemplate> findByParentIDAndName(@Param(value="parentId") Object parentId, @Param(value="name") String name)
findByParentIDAndName in interface StorableRepository<OperationTemplate>@Query(value="select template.* from mb_templates template where template.type = \'operation\' and template.parent_operation_id = :parentId",
nativeQuery=true)
List<OperationTemplate> findByParentID(@Param(value="parentId")
Object parentId)
findByParentID in interface StorableRepository<OperationTemplate>@Query(value="select operationTemplate from OperationTemplate as operationTemplate inner join Operation as operation on operation = operationTemplate.parent where operation.name = :name") List<OperationTemplate> findByParentName(@Param(value="name") String name)
findByParentName in interface StorableRepository<OperationTemplate>@Query(value="select template from OperationTemplate template inner join Operation as operation on operation = template.parent where lower(operation.name) like concat(\'%\', lower(:name), \'%\') and operation.projectId = :projectId") Collection<OperationTemplate> findByParentNameAndProject(@Param(value="name") String name, @Param(value="projectId") BigInteger projectId)
@Query(value="select t from OperationTemplate as t where lower(t.name) like concat(\'%\', lower(:name), \'%\') and t.projectId = :projectId") Collection<OperationTemplate> findByPieceOfNameAndProject(@Param(value="name") String name, @Param(value="projectId") BigInteger projectId)
@Query(value="select new org.qubership.automation.itf.core.model.IdNamePair(opTemplate.id, opTemplate.name) from OperationTemplate opTemplate where lower(opTemplate.name) like concat(\'%\', lower(:name), \'%\') and opTemplate.parent.id = :parentId") List<IdNamePair> findByPieceOfNameAndParentId(@Param(value="name") String name, @Param(value="parentId") BigInteger parentId)
@Query(value="select t.id, t.name from mb_templates t where t.project_id = :projectId",
nativeQuery=true)
List<Object[]> findIdAndNameByProjectId(@Param(value="projectId")
BigInteger projectId)
@Query(value="select t from OperationTemplate as t where id = :id")
@QueryHints(value={@QueryHint(name="org.hibernate.cacheable",value="true"),})
OperationTemplate findByIdOnly(@Param(value="id")
BigInteger id)
Copyright © 2025. All rights reserved.