docs: update single table inheritance

This commit is contained in:
Ilkka Seppälä
2024-05-20 20:42:17 +03:00
parent 882bcbf385
commit e76bdffab4
3 changed files with 112 additions and 100 deletions
@@ -81,7 +81,7 @@ public class SingleTableInheritance implements CommandLineRunner {
* @param args program runtime arguments
*/
@Override
public void run(String... args) throws Exception {
public void run(String... args) {
Logger log = LoggerFactory.getLogger(SingleTableInheritance.class);
@@ -45,10 +45,4 @@ public abstract class PassengerVehicle extends Vehicle {
super(manufacturer, model);
this.noOfPassengers = noOfPassengers;
}
@Override
public String toString() {
return super.toString();
}
}