Hendrik Jungnitsch
2022-09-07 86a01d37d927894f9ccd672504a05658286fa529
src/main/java/de/gedoplan/seminar/jpa/exercise/domain/Junction.java
@@ -8,7 +8,10 @@
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)
@@ -26,6 +29,10 @@
   private JunctionKind kind;
   private String no;
   @JsonIgnoreProperties("junctions")
   @ManyToOne
   private Highway highway;
   public Junction() {
@@ -68,6 +75,15 @@
   public void setNo(String no) {
      this.no = no;
   }
   public Highway getHighway() {
      return highway;
   }
   public void setHighway(Highway highway) {
      this.highway = highway;
   }
   @Override
   public int hashCode() {