1 package org.oxerr.viagogo.model; 2 3 import org.apache.commons.lang3.builder.EqualsBuilder; 4 import org.apache.commons.lang3.builder.HashCodeBuilder; 5 6 public class SeatingDetail extends Seating { 7 8 private static final long serialVersionUID = 2023021301L; 9 10 public SeatingDetail() { 11 } 12 13 public SeatingDetail(String section, String row, String seatFrom, String seatTo) { 14 super(section, row, seatFrom, seatTo); 15 } 16 17 @Override 18 public int hashCode() { 19 return HashCodeBuilder.reflectionHashCode(this); 20 } 21 22 @Override 23 public boolean equals(Object obj) { 24 if (this == obj) { 25 return true; 26 } 27 if (!(obj instanceof SeatingDetail)) { 28 return false; 29 } 30 SeatingDetail rhs = (SeatingDetail) obj; 31 return EqualsBuilder.reflectionEquals(this, rhs); 32 } 33 34 }