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,36 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user