app/repository/TripDestinationsRepository.java
public CompletionStage<Integer> insert(TripDestination tripDestination) {
        return supplyAsync(() -> {
            ebeanServer.insert(tripDestination);
            return tripDestination.getTripId();
        }, executionContext);
    }
/**
     * Insert trip destination into database
     * @param tripDestination trip destination to be inserted
     * @return Id of the newly inserted trip
     */
Insert trip destination into database
@param tripDestination trip destination to be inserted
@return Id of the newly inserted trip
Insert trip destination into database @param tripDestination trip destination to be inserted @return Id of the newly inserted trip
public CompletionStage<Integer> insert(TripDestination tripDestination) {
        return supplyAsync(() -> {
            ebeanServer.insert(tripDestination);
            return tripDestination.getTripId();
        }, executionContext);
    }
public CompletionStage < Integer > insert ( TripDestination tripDestination ) { return supplyAsync ( ( ) -> { ebeanServer . insert ( tripDestination ) ; return tripDestination . getTripId ( ) ; } , executionContext ) ; }
Insert trip destination into database
 @param tripDestination trip destination to be inserted
 @return Id of the newly inserted trip
Insert trip destination into database @param tripDestination trip destination to be inserted @return Id of the newly inserted trip