app/repository/ArtistRepository.java
public CompletionStage<Integer> insert(Artist artist) {
        return supplyAsync(() -> {
            ebeanServer.insert(artist);
            return artist.getArtistId();
        }, executionContext);
    }
/**
     * Inserts an Artist object into the ebean database server
     * and checks if the selected countries are in the database,
     * if they are not, the country is added to the database and added to
     * the artist country linking table
     *
     * @param artist Artist object to insert into the database
     * @return the new Artist id
     */
Inserts an Artist object into the ebean database server
and checks if the selected countries are in the database,
if they are not, the country is added to the database and added to
the artist country linking table

@param artist Artist object to insert into the database
@return the new Artist id
Inserts an Artist object into the ebean database server and checks if the selected countries are in the database if they are not the country is added to the database and added to the artist country linking table @param artist Artist object to insert into the database @return the new Artist id
public CompletionStage<Integer> insert(Artist artist) {
        return supplyAsync(() -> {
            ebeanServer.insert(artist);
            return artist.getArtistId();
        }, executionContext);
    }
public CompletionStage < Integer > insert ( Artist artist ) { return supplyAsync ( ( ) -> { ebeanServer . insert ( artist ) ; return artist . getArtistId ( ) ; } , executionContext ) ; }
Inserts an Artist object into the ebean database server
 and checks if the selected countries are in the database,
 if they are not, the country is added to the database and added to
 the artist country linking table
Inserts an Artist object into the ebean database server and checks if the selected countries are in the database if they are not the country is added to the database and added to the artist country linking table