RED-7049 - Wrong error code when adding entity with already existing rank - backport
- fix query Signed-off-by: Corina Olariu <corina.olariu.ext@knecon.com>
This commit is contained in:
parent
b43fd35a47
commit
aaedac8d12
@ -67,7 +67,7 @@ public interface TypeRepository extends JpaRepository<TypeEntity, String> {
|
||||
|
||||
|
||||
@Query("""
|
||||
select new TypeRankSummary(t.dossierTemplateId, t.dossierId, t.rank, count(t))
|
||||
select new com.iqser.red.service.persistence.service.v1.api.shared.model.dossiertemplate.type.TypeRankSummary(t.dossierTemplateId, t.dossierId, t.rank, count(t))
|
||||
from TypeEntity t where t.dossierTemplateId = :dossierTemplateId and t.softDeletedTime is null
|
||||
group by t.dossierTemplateId, t.dossierId, ¬t.rank
|
||||
order by t.rank""")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user