app/repository/ArtistRepository.java
public boolean isAdminOfGivenArtist(int profileId, int artistId){
        return ebeanServer.find(ArtistProfile.class)
                .where()
                .eq("profile_id", profileId)
                .eq("artist_id", artistId).exists();
    }
/**
     * DB check to see if a given profile is an artist admin of a given artist
     * @param profileId id of the given profile
     * @param artistId id of the given artist
     * @return True if the profile is an admin of the given artist
     */
DB check to see if a given profile is an artist admin of a given artist
@param profileId id of the given profile
@param artistId id of the given artist
@return True if the profile is an admin of the given artist
DB check to see if a given profile is an artist admin of a given artist @param profileId id of the given profile @param artistId id of the given artist @return True if the profile is an admin of the given artist
public boolean isAdminOfGivenArtist(int profileId, int artistId){
        return ebeanServer.find(ArtistProfile.class)
                .where()
                .eq("profile_id", profileId)
                .eq("artist_id", artistId).exists();
    }
public boolean isAdminOfGivenArtist ( int profileId , int artistId ) { return ebeanServer . find ( ArtistProfile . class ) . where ( ) . eq ( "profile_id" , profileId ) . eq ( "artist_id" , artistId ) . exists ( ) ; }
DB check to see if a given profile is an artist admin of a given artist
 @param profileId id of the given profile
 @param artistId id of the given artist
 @return True if the profile is an admin of the given artist
DB check to see if a given profile is an artist admin of a given artist @param profileId id of the given profile @param artistId id of the given artist @return True if the profile is an admin of the given artist