app/repository/ArtistRepository.java
public CompletionStage<Boolean> checkDuplicate(String artistName) {
        return supplyAsync(() -> {
            Artist artist = ebeanServer.find(Artist.class)
                    .where().eq("artist_name", artistName)
                    .findOne();
            return artist != null;
        }, executionContext);
    }
/** Checks if the artist to add is a duplicate of an existing artist
     * @param artistName Name of the artist the duplicate check is on
     * @return Completion stage boolean that returns true if there is an artist with the given name in the database
     */
Checks if the artist to add is a duplicate of an existing artist
@param artistName Name of the artist the duplicate check is on
@return Completion stage boolean that returns true if there is an artist with the given name in the database
Checks if the artist to add is a duplicate of an existing artist @param artistName Name of the artist the duplicate check is on @return Completion stage boolean that returns true if there is an artist with the given name in the database
public CompletionStage<Boolean> checkDuplicate(String artistName) {
        return supplyAsync(() -> {
            Artist artist = ebeanServer.find(Artist.class)
                    .where().eq("artist_name", artistName)
                    .findOne();
            return artist != null;
        }, executionContext);
    }
public CompletionStage < Boolean > checkDuplicate ( String artistName ) { return supplyAsync ( ( ) -> { Artist artist = ebeanServer . find ( Artist . class ) . where ( ) . eq ( "artist_name" , artistName ) . findOne ( ) ; return artist != null ; } , executionContext ) ; }
Checks if the artist to add is a duplicate of an existing artist
 @param artistName Name of the artist the duplicate check is on
 @return Completion stage boolean that returns true if there is an artist with the given name in the database
Checks if the artist to add is a duplicate of an existing artist @param artistName Name of the artist the duplicate check is on @return Completion stage boolean that returns true if there is an artist with the given name in the database