lib/transportation-persistence/src/main/java/org/bananaforscale/transportation/jpa/airplane/AirplanePersistenceManager.java
public boolean delete(Integer id) {
        try {
            JpaAirplaneBinding jpaMapping = em.find(JpaAirplaneBinding.class, id);
            if (jpaMapping == null) {
                LOGGER.info("Could not remove service with id [" + id + "] as it doesn't exist in the database");
                return false;
            }
            LOGGER.info("Deleting airplane with id: " + id);
            em.remove(jpaMapping);
        } catch (IllegalArgumentException | TransactionRequiredException ex) {
            LOGGER.error("An error occurred while removing airplane with id: " + id, ex);
            return false;
        }
        return true;
    }
/**
     * Delete an airplane from the data source
     *
     * @param id the id of the airplane to delete
     * @return the result of the operation
     */
Delete an airplane from the data source
@param id the id of the airplane to delete
@return the result of the operation
Delete an airplane from the data source @param id the id of the airplane to delete @return the result of the operation
public boolean delete(Integer id) {
        try {
            JpaAirplaneBinding jpaMapping = em.find(JpaAirplaneBinding.class, id);
            if (jpaMapping == null) {
                LOGGER.info("Could not remove service with id [" + id + "] as it doesn't exist in the database");
                return false;
            }
            LOGGER.info("Deleting airplane with id: " + id);
            em.remove(jpaMapping);
        } catch (IllegalArgumentException | TransactionRequiredException ex) {
            LOGGER.error("An error occurred while removing airplane with id: " + id, ex);
            return false;
        }
        return true;
    }
public boolean delete ( Integer id ) { try { JpaAirplaneBinding jpaMapping = em . find ( JpaAirplaneBinding . class , id ) ; if ( jpaMapping == null ) { LOGGER . info ( "Could not remove service with id [" + id + "] as it doesn't exist in the database" ) ; return false ; } LOGGER . info ( "Deleting airplane with id: " + id ) ; em . remove ( jpaMapping ) ; } catch ( IllegalArgumentException | TransactionRequiredException ex ) { LOGGER . error ( "An error occurred while removing airplane with id: " + id , ex ) ; return false ; } return true ; }
Delete an airplane from the data source
 @param id the id of the airplane to delete
 @return the result of the operation
Delete an airplane from the data source @param id the id of the airplane to delete @return the result of the operation