private <T> TableInspector getTable(T model) throws SQLException {
		@SuppressWarnings("unchecked")
		Class<T> clazz = (Class<T>) model.getClass();
		TableDefinition<T> def = db.define(clazz);
		boolean forceUpperCase = getMetaData().storesUpperCaseIdentifiers();
		String schema = (forceUpperCase && def.schemaName != null) ? def.schemaName.toUpperCase()
				: def.schemaName;
		String table = forceUpperCase ? def.tableName.toUpperCase() : def.tableName;
		List<TableInspector> tables = getTables(schema, table);
		return tables.get(0);
	}