Teste de Inclusão de Trabalhos
Por: gguidoni • 12/11/2019 • Artigo • 471 Palavras (2 Páginas) • 129 Visualizações
package br.ufes.informatica.rationalontology.core.domain;
import java.io.Serializable;
import br.ufes.inf.nemo.jbutler.ejb.persistence.PersistentObjectSupport;
public class Car extends PersistentObjectSupport implements Comparable<Access> {
//private long id;
private String brand;
private int year;
private int price;
private boolean sold;
public Car() {}
public Car(long id, String brand, int year) {
//this.id = id;
setId(id);
this.brand = brand;
this.year = year;
}
public Car(long id, String brand, int year, int price, boolean sold) {
//this.id = id;
setId(id);
this.brand = brand;
this.year = year;
this.price = price;
this.sold = sold;
}
/*
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}*/
public String getBrand() {
return brand;
}
public void setBrand(String brand) {
this.brand = brand;
}
public int getYear() {
return year;
}
public void setYear(int year) {
this.year = year;
}
public int getPrice() {
return price;
}
public void setPrice(int price) {
this.price = price;
}
...