app/repository/NationalityRepository.java
public Optional<Integer> insert(Nationality nationality) {

        ebeanServer.insert(nationality);


        return Optional.of(nationality.getNationalityId());

    }
/**
     * Method to insert a passed Nationality in the database
     * @param nationality the Nationality to delete
     * @return CompletionStage holding an Optional of the nationalities database id
     */
Method to insert a passed Nationality in the database
@param nationality the Nationality to delete
@return CompletionStage holding an Optional of the nationalities database id
Method to insert a passed Nationality in the database @param nationality the Nationality to delete @return CompletionStage holding an Optional of the nationalities database id
public Optional<Integer> insert(Nationality nationality) {
        ebeanServer.insert(nationality);
        return Optional.of(nationality.getNationalityId());
    }
public Optional < Integer > insert ( Nationality nationality ) { ebeanServer . insert ( nationality ) ; return Optional . of ( nationality . getNationalityId ( ) ) ; }
Method to insert a passed Nationality in the database
 @param nationality the Nationality to delete
 @return CompletionStage holding an Optional of the nationalities database id
Method to insert a passed Nationality in the database @param nationality the Nationality to delete @return CompletionStage holding an Optional of the nationalities database id