blob: 14c83ec4e674034f00b4195daa2c5cfc34f3d249 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package examples.entity.joined;
import java.io.Serializable;
import javax.persistence.Entity;
@Entity(name="MotorcycleJoined")
public class Motorcycle extends RoadVehicle implements Serializable {
public final AcceleratorType acceleratorType = AcceleratorType.THROTTLE;
public Motorcycle() {
super();
numWheels = 2;
numPassengers = 2;
}
}
|