src/com/vehiclerental/dataLayer/sqliteImplementation/BaseDaoSqliteImpl.java
/**
     * Inserts the given element into the SQLite database of the given type
     *
     * @param entity the given element
     * @return the given element, updated with a generated id, null if it didn't work
     */
Inserts the given element into the SQLite database of the given type
@param entity the given element
@return the given element, updated with a generated id, null if it didn't work
Inserts the given element into the SQLite database of the given type @param entity the given element @return the given element updated with a generated id null if it didn ' t work
@Override
    public T create(T entity) {
        try {
            return dao.createIfNotExists(entity);
        } catch (SQLException e) {
            return null;
        }
    }
@ Override public T create ( T entity ) { try { return dao . createIfNotExists ( entity ) ; } catch ( SQLException e ) { return null ; } }
Inserts the given element into the SQLite database of the given type
 @param entity the given element
 @return the given element, updated with a generated id, null if it didn't work
Inserts the given element into the SQLite database of the given type @param entity the given element @return the given element updated with a generated id null if it didn ' t work