app/repository/TreasureHuntRepository.java
public CompletionStage<Integer> insert(TreasureHunt treasureHunt){
        return supplyAsync(() -> {
            ebeanServer.insert(treasureHunt);
            return treasureHunt.getTreasureHuntId();
        }, executionContext);
    }
/**
     * Inserts an TreasureHunt object into the ebean database server
     *
     * @param treasureHunt TreasureHunt object to insert into the database
     * @return the TreasureHunt id
     */
Inserts an TreasureHunt object into the ebean database server
@param treasureHunt TreasureHunt object to insert into the database
@return the TreasureHunt id
Inserts an TreasureHunt object into the ebean database server @param treasureHunt TreasureHunt object to insert into the database @return the TreasureHunt id
public CompletionStage<Integer> insert(TreasureHunt treasureHunt){
        return supplyAsync(() -> {
            ebeanServer.insert(treasureHunt);
            return treasureHunt.getTreasureHuntId();
        }, executionContext);
    }
public CompletionStage < Integer > insert ( TreasureHunt treasureHunt ) { return supplyAsync ( ( ) -> { ebeanServer . insert ( treasureHunt ) ; return treasureHunt . getTreasureHuntId ( ) ; } , executionContext ) ; }
Inserts an TreasureHunt object into the ebean database server
 @param treasureHunt TreasureHunt object to insert into the database
 @return the TreasureHunt id
Inserts an TreasureHunt object into the ebean database server @param treasureHunt TreasureHunt object to insert into the database @return the TreasureHunt id