package cars; public class Car { private String vin; private String manufacturer; private String model; public Car(String vin, String manufacturer, String model) { this.vin = vin; this.manufacturer = manufacturer; this.model = model; } public String getVin() { return vin; } public String getManufacturer() { return manufacturer; } public String getModel() { return model; } }
The Car class defines beans that are not managed by JSF. They are just carriers for information about cars obtained from the database bean. The car class beans have read-only vin, manufacturer, and model properties.