app/repository/EventTypeRepository.java
public CompletionStage<Integer> insert(EventType eventType){
        return supplyAsync(() -> {
            ebeanServer.insert(eventType);
            return eventType.getEventId();
        }, executionContext);
    }
/**
     * EventType Create
     * Inserts an EventType into the ebean database server
     * @param eventType EventType object that will be inserted into the database
     * @return Integer: eventType id
     */
EventType Create
Inserts an EventType into the ebean database server
@param eventType EventType object that will be inserted into the database
@return Integer: eventType id
EventType Create Inserts an EventType into the ebean database server @param eventType EventType object that will be inserted into the database @return Integer : eventType id
public CompletionStage<Integer> insert(EventType eventType){
        return supplyAsync(() -> {
            ebeanServer.insert(eventType);
            return eventType.getEventId();
        }, executionContext);
    }
public CompletionStage < Integer > insert ( EventType eventType ) { return supplyAsync ( ( ) -> { ebeanServer . insert ( eventType ) ; return eventType . getEventId ( ) ; } , executionContext ) ; }
EventType Create
 Inserts an EventType into the ebean database server
 @param eventType EventType object that will be inserted into the database
 @return Integer: eventType id
EventType Create Inserts an EventType into the ebean database server @param eventType EventType object that will be inserted into the database @return Integer : eventType id