Commit 19cf91e7 authored by Matija Obreza's avatar Matija Obreza
Browse files

Updated @Query to delete AccessionAlias by accessionIds

parent 4d644e96
......@@ -33,7 +33,7 @@ public interface AccessionAliasRepository extends JpaRepository<AccessionAlias,
List<AccessionAlias> findByAccessionAndAliasType(Accession accession, int aliasType);
@Modifying
@Query("delete from AccessionAlias aa where aa.accession in (from Accession a where a.id in ( :ids ))")
@Query("delete from AccessionAlias aa where aa.accession.id in ( :ids )")
void deleteForAccessions(@Param("ids") Collection<Long> accessionIds);
@Query("select distinct aa.accession from AccessionAlias aa where aa.usedBy=?1 and aa.name=?2 and aa.aliasType=?3 and aa.accession.institute.code=?1")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment