remove
Link
From
Collection
@Modifying(clearAutomatically = true
)
@Query(value = ""DELETE FROM " + COLLECTIONS_LINKS_TABLE + _WHERE_ +
COLLECTION_IDENTIFIER_KEY + "=:" + COLLECTION_IDENTIFIER_KEY + " AND " +
LINK_IDENTIFIER_KEY + "=:" + LINK_IDENTIFIER_KEY",
nativeQuery = true
)
Method to execute the query remove a link from a collection
Parameters
collectionId
The identifier of the collection
linkId
The identifier of the link