| | |
| | | import javax.persistence.GeneratedValue; |
| | | import javax.persistence.GenerationType; |
| | | import javax.persistence.Id; |
| | | import javax.persistence.ManyToOne; |
| | | import javax.persistence.Table; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| | | |
| | | @Entity |
| | | @Table(name = Junction.TABLE_NAME) |
| | |
| | | private JunctionKind kind; |
| | | |
| | | private String no; |
| | | |
| | | @JsonIgnoreProperties("junctions") |
| | | @ManyToOne |
| | | private Highway highway; |
| | | |
| | | public Junction() { |
| | | |
| | |
| | | |
| | | public void setNo(String no) { |
| | | this.no = no; |
| | | } |
| | | |
| | | |
| | | public Highway getHighway() { |
| | | return highway; |
| | | } |
| | | |
| | | public void setHighway(Highway highway) { |
| | | this.highway = highway; |
| | | } |
| | | |
| | | @Override |