| | |
| | | package de.gedoplan.seminar.jpa.exercise.domain; |
| | | |
| | | |
| | | public class Highway { |
| | | |
| | | private int id; |
| | | private String name; |
| | | private String origin; |
| | | private String destination; |
| | | private int id; |
| | | private String name; |
| | | private String origin; |
| | | private String destination; |
| | | |
| | | public Highway() { |
| | | } |
| | | |
| | | public Highway(int id, String name, String origin, String destination) { |
| | | this.id = id; |
| | | this.name = name; |
| | | this.origin = origin; |
| | | this.destination = destination; |
| | | } |
| | | public Highway(int id, String name, String origin, String destination) { |
| | | this.id = id; |
| | | this.name = name; |
| | | this.origin = origin; |
| | | this.destination = destination; |
| | | } |
| | | |
| | | public int getId() { |
| | | return this.id; |
| | | } |
| | | public int getId() { |
| | | return this.id; |
| | | } |
| | | |
| | | public String getName() { |
| | | return this.name; |
| | | } |
| | | public void setId(int id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getOrigin() { |
| | | return this.origin; |
| | | } |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public String getDestination() { |
| | | return this.destination; |
| | | } |
| | | public void setOrigin(String origin) { |
| | | this.origin = origin; |
| | | } |
| | | |
| | | public void setDestination(String destination) { |
| | | this.destination = destination; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "Highway [id=" + this.id + ", name=" + this.name + ", origin=" + this.origin + ", destination=" + this.destination + "]"; |
| | | } |
| | | public String getName() { |
| | | return this.name; |
| | | } |
| | | |
| | | public String getOrigin() { |
| | | return this.origin; |
| | | } |
| | | |
| | | public String getDestination() { |
| | | return this.destination; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "Highway [id=" + this.id + ", name=" + this.name + ", origin=" + this.origin + ", destination=" |
| | | + this.destination + "]"; |
| | | } |
| | | |
| | | } |