@Override
    public String getRowKey(Customer customer) {
        return String.valueOf(customer.getId());
    }
Dummy implementation of LazyDataModel that uses a list to mimic a real datasource like a database.
primefaces-showcase/src/main/java/org/primefaces/showcase/view/data/datatable/LazyCustomerDataModel.java