mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
57 lines
966 B
Java
57 lines
966 B
Java
package com.avaje.tests.model.basic;
|
|
|
|
import java.util.Date;
|
|
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.ManyToOne;
|
|
|
|
@Entity
|
|
public class Trip extends BasicDomain {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@ManyToOne
|
|
private VehicleDriver vehicleDriver;
|
|
|
|
private String destination;
|
|
|
|
@ManyToOne
|
|
private Address address;
|
|
|
|
private Date starDate;
|
|
|
|
public VehicleDriver getVehicleDriver() {
|
|
return vehicleDriver;
|
|
}
|
|
|
|
public void setVehicleDriver(VehicleDriver vehicleDriver) {
|
|
this.vehicleDriver = vehicleDriver;
|
|
}
|
|
|
|
public String getDestination() {
|
|
return destination;
|
|
}
|
|
|
|
public void setDestination(String destination) {
|
|
this.destination = destination;
|
|
}
|
|
|
|
public Address getAddress() {
|
|
return address;
|
|
}
|
|
|
|
public void setAddress(Address address) {
|
|
this.address = address;
|
|
}
|
|
|
|
public Date getStarDate() {
|
|
return starDate;
|
|
}
|
|
|
|
public void setStarDate(Date starDate) {
|
|
this.starDate = starDate;
|
|
}
|
|
|
|
|
|
}
|