Created
October 30, 2019 16:54
-
-
Save TikhomirovSergey/e253594f714443440903b0765618c88e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@PersistenceCapable(table = "CarModels") | |
public class CarModel extends PersistableObject { | |
@PrimaryKey | |
@Persistent(valueStrategy= IdGeneratorStrategy.INCREMENT) | |
@Column(name = "Id") | |
private Integer id; | |
@Column(name = "CariD") | |
private Car car; | |
@Column(name = "CarModelName") | |
private String carModelName; | |
@Column(name = "ProducedFrom") | |
private Date producedFrom; | |
@Column(name = "ProducedTo") | |
private Date producedTo; | |
public Integer getId() { | |
return id; | |
} | |
public Car getCar() { | |
return car; | |
} | |
public CarModel setCar(Car car) { | |
this.car = car; | |
return this; | |
} | |
public String getCarModelName() { | |
return carModelName; | |
} | |
public CarModel setCarModelName(String carModelName) { | |
this.carModelName = carModelName; | |
return this; | |
} | |
public Date getProducedFrom() { | |
return producedFrom; | |
} | |
public CarModel setProducedFrom(Date producedFrom) { | |
this.producedFrom = producedFrom; | |
return this; | |
} | |
public Date getProducedTo() { | |
return producedTo; | |
} | |
public CarModel setProducedTo(Date producedTo) { | |
this.producedTo = producedTo; | |
return this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment