mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
37 lines
672 B
Java
37 lines
672 B
Java
package com.avaje.tests.model.basic;
|
|
|
|
import javax.persistence.DiscriminatorValue;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Inheritance;
|
|
import javax.persistence.ManyToOne;
|
|
|
|
@Entity
|
|
@Inheritance
|
|
@DiscriminatorValue("T")
|
|
public class Truck extends Vehicle {
|
|
|
|
private static final long serialVersionUID = 7433386912403859900L;
|
|
|
|
@ManyToOne
|
|
TruckRef truckRef;
|
|
|
|
private Double capacity;
|
|
|
|
public Double getCapacity() {
|
|
return capacity;
|
|
}
|
|
|
|
public void setCapacity(Double capacity) {
|
|
this.capacity = capacity;
|
|
}
|
|
|
|
public TruckRef getTruckRef() {
|
|
return truckRef;
|
|
}
|
|
|
|
public void setTruckRef(TruckRef truckRef) {
|
|
this.truckRef = truckRef;
|
|
}
|
|
|
|
}
|