app/repository/EventTypeRepository.java
public CompletionStage<Integer> updateEventType(int eventId, int newTypeId){
        return supplyAsync(() -> {
            ebeanServer.update(EventType.class).set("type_id", newTypeId)
                    .where()
                    .eq("event_id", Integer.toString(eventId))
                    .update();
            return eventId;
        }, executionContext);
    }
/**
     * EventType Update
     * Method to update an event type id to the new given typeId
     * @param eventId id of the EventType object that will be updated
     * @param newTypeId Type id the event type will be changed too
     * @return id of the event
     */
EventType Update
Method to update an event type id to the new given typeId
@param eventId id of the EventType object that will be updated
@param newTypeId Type id the event type will be changed too
@return id of the event
EventType Update Method to update an event type id to the new given typeId @param eventId id of the EventType object that will be updated @param newTypeId Type id the event type will be changed too @return id of the event
public CompletionStage<Integer> updateEventType(int eventId, int newTypeId){
        return supplyAsync(() -> {
            ebeanServer.update(EventType.class).set("type_id", newTypeId)
                    .where()
                    .eq("event_id", Integer.toString(eventId))
                    .update();
            return eventId;
        }, executionContext);
    }
public CompletionStage < Integer > updateEventType ( int eventId , int newTypeId ) { return supplyAsync ( ( ) -> { ebeanServer . update ( EventType . class ) . set ( "type_id" , newTypeId ) . where ( ) . eq ( "event_id" , Integer . toString ( eventId ) ) . update ( ) ; return eventId ; } , executionContext ) ; }
EventType Update
 Method to update an event type id to the new given typeId
 @param eventId id of the EventType object that will be updated
 @param newTypeId Type id the event type will be changed too
 @return id of the event
EventType Update Method to update an event type id to the new given typeId @param eventId id of the EventType object that will be updated @param newTypeId Type id the event type will be changed too @return id of the event