Exemplo n.º 1
0
  protected void prepareModel() throws Exception {
    if (entity == null) {
      if (id != null) {
        entity = service.get(id);
      } else {
        entity = new CarUse();
        entity.setStatus(false);
      }
    }

    cars = carDao.findAll();
    System.out.println("cars.size() = " + cars.size());
  }