app/repository/ArtistRepository.java
private CompletionStage<Void> deleteAllSpecifiedEntriesForAnArtist(int id, String table) {
        return supplyAsync(() -> {
            Transaction txn = ebeanServer.beginTransaction();
            String qry = "DELETE FROM " + table + " WHERE artist_id = ?";
            try {
                SqlUpdate query = Ebean.createSqlUpdate(qry);
                query.setParameter(1, id);
                query.execute();
                txn.commit();
            } finally {
                txn.end();
            }
            return null;
        });
    }
/**
     * Helper method that takes in a specified artist table  and artist id and deletes all entries for that particular
     * artist in the given artist table. Used for the admin update artist.
     *
     * @param id the id of the artist
     * @param table the intended artist table that all artist entries are going to be removed from
     * @return void CompletionStage
     */
Helper method that takes in a specified artist table  and artist id and deletes all entries for that particular
artist in the given artist table. Used for the admin update artist.

@param id the id of the artist
@param table the intended artist table that all artist entries are going to be removed from
@return void CompletionStage
Helper method that takes in a specified artist table and artist id and deletes all entries for that particular artist in the given artist table . Used for the admin update artist . @param id the id of the artist @param table the intended artist table that all artist entries are going to be removed from @return void CompletionStage
private CompletionStage<Void> deleteAllSpecifiedEntriesForAnArtist(int id, String table) {
        return supplyAsync(() -> {
            Transaction txn = ebeanServer.beginTransaction();
            String qry = "DELETE FROM " + table + " WHERE artist_id = ?";
            try {
                SqlUpdate query = Ebean.createSqlUpdate(qry);
                query.setParameter(1, id);
                query.execute();
                txn.commit();
            } finally {
                txn.end();
            }
            return null;
        });
    }
private CompletionStage < Void > deleteAllSpecifiedEntriesForAnArtist ( int id , String table ) { return supplyAsync ( ( ) -> { Transaction txn = ebeanServer . beginTransaction ( ) ; String qry = "DELETE FROM " + table + " WHERE artist_id = ?" ; try { SqlUpdate query = Ebean . createSqlUpdate ( qry ) ; query . setParameter ( 1 , id ) ; query . execute ( ) ; txn . commit ( ) ; } finally { txn . end ( ) ; } return null ; } ) ; }
Helper method that takes in a specified artist table  and artist id and deletes all entries for that particular
 artist in the given artist table.
Helper method that takes in a specified artist table and artist id and deletes all entries for that particular artist in the given artist table .