app/repository/EventTypeRepository.java
public CompletionStage<Void> removeEventType(int eventId){
        return supplyAsync(() -> {
            ebeanServer.find(EventType.class)
                    .where()
                    .eq("event_id", eventId)
                    .delete();
            return null;
        });
    }
/**
     * EventType Delete
     * Method to delete an EventType object from the database by a given id
     * @param eventId int: id of the eventType that will be removed
     * @return null
     */
EventType Delete
Method to delete an EventType object from the database by a given id
@param eventId int: id of the eventType that will be removed
@return null
EventType Delete Method to delete an EventType object from the database by a given id @param eventId int : id of the eventType that will be removed @return null
public CompletionStage<Void> removeEventType(int eventId){
        return supplyAsync(() -> {
            ebeanServer.find(EventType.class)
                    .where()
                    .eq("event_id", eventId)
                    .delete();
            return null;
        });
    }
public CompletionStage < Void > removeEventType ( int eventId ) { return supplyAsync ( ( ) -> { ebeanServer . find ( EventType . class ) . where ( ) . eq ( "event_id" , eventId ) . delete ( ) ; return null ; } ) ; }
EventType Delete
 Method to delete an EventType object from the database by a given id
 @param eventId int: id of the eventType that will be removed
 @return null
EventType Delete Method to delete an EventType object from the database by a given id @param eventId int : id of the eventType that will be removed @return null