@Override
	public T getById(Integer id) {
		if (id == null || id == -1) {
			return null;
		}
		String constraint = getTableIdCol() + " = " + id;
		List<T> list = get(constraint);
		if (list.size() == 0) {
			return null;
		}
		return list.get(0);
	}