app/repository/ArtistRepository.java
public Artist populateArtistAdmin(Artist artist) {

        artist = populateArtist(artist);
        List<Integer> linkIds = ebeanServer.find(ArtistProfile.class).select("profileId").where().eq("artist_id", artist.getArtistId()).findSingleAttributeList();
        if (!linkIds.isEmpty()) {
            artist.setAdminsList(ebeanServer.find(Profile.class).where().idIn(linkIds).findList());
        } else {
            artist.setAdminsList(new ArrayList<>());
        }
        return artist;
    }
/**
     * Method to populate a artist to add admins into artists used for admin page
     * @param artist Artist to be have added linking table data
     * @return Artist that has had genre and country added
     */
Method to populate a artist to add admins into artists used for admin page
@param artist Artist to be have added linking table data
@return Artist that has had genre and country added
Method to populate a artist to add admins into artists used for admin page @param artist Artist to be have added linking table data @return Artist that has had genre and country added
public Artist populateArtistAdmin(Artist artist) {
        artist = populateArtist(artist);
        List<Integer> linkIds = ebeanServer.find(ArtistProfile.class).select("profileId").where().eq("artist_id", artist.getArtistId()).findSingleAttributeList();
        if (!linkIds.isEmpty()) {
            artist.setAdminsList(ebeanServer.find(Profile.class).where().idIn(linkIds).findList());
        } else {
            artist.setAdminsList(new ArrayList<>());
        }
        return artist;
    }
public Artist populateArtistAdmin ( Artist artist ) { artist = populateArtist ( artist ) ; List < Integer > linkIds = ebeanServer . find ( ArtistProfile . class ) . select ( "profileId" ) . where ( ) . eq ( "artist_id" , artist . getArtistId ( ) ) . findSingleAttributeList ( ) ; if ( ! linkIds . isEmpty ( ) ) { artist . setAdminsList ( ebeanServer . find ( Profile . class ) . where ( ) . idIn ( linkIds ) . findList ( ) ) ; } else { artist . setAdminsList ( new ArrayList < > ( ) ) ; } return artist ; }
Method to populate a artist to add admins into artists used for admin page
 @param artist Artist to be have added linking table data
 @return Artist that has had genre and country added
Method to populate a artist to add admins into artists used for admin page @param artist Artist to be have added linking table data @return Artist that has had genre and country added