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);
@Query("delete from AccessionAlias aa where aa.accession in (from Accession a where in ( :ids ))")
@Query("delete from AccessionAlias aa where in ( :ids )")
void deleteForAccessions(@Param("ids") Collection<Long> accessionIds);
@Query("select distinct aa.accession from AccessionAlias aa where aa.usedBy=?1 and and aa.aliasType=?3 and")
Supports Markdown
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