mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
initial add of EbeanORM server based on v2.8.1
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user