content: package com.amnesica.belugaproject.entities.trails;
  
  import jakarta.persistence.Entity;
  import jakarta.persistence.Index;
  import jakarta.persistence.Table;
  
  @Entity
  @Table(indexes = {@Index(name = "idx_hac_trail_hex_timestampAsc", columnList = "hex, timestamp ASC"),
      @Index(name = "idx_hac_trail_timestamp", columnList = "timestamp"),
      @Index(name = "idx_hac_trail_hex", columnList = "hex"),
      @Index(name = "idx_hac_trail_hex_feeder_timestampAsc", columnList = "hex, feeder, timestamp ASC")})
  public class HistoryAircraftTrail extends TrailSuperclass {
  
    // TODO: Implementierung der Speicherung der Trail History
    public HistoryAircraftTrail() {
      // Benötiger, leerer Konstruktor
    }
  
    public HistoryAircraftTrail(String hex, Double longitude, Double latitude, Integer altitude, Boolean reenteredAircraft,
                                Long timestamp, String feeder, String source, Integer track, Double roll) {
      super(hex, longitude, latitude, altitude, reenteredAircraft,
          timestamp, feeder, source, track, roll);
    }
  
    /**
     * Erstellt eine Kopie des AircraftTrails, welches als Parameter hereingegeben wird
     *
     * @param that Zu kopierender Trail (AircraftTrail)
     * @return HistoryAircraftTrail
     */
    public static HistoryAircraftTrail makeCopy(AircraftTrail that) {
      return new HistoryAircraftTrail(that.getHex(), that.getLongitude(), that.getLatitude(), that.getAltitude(), that.getReenteredAircraft(), that.getTimestamp(), that.getFeeder(), that.getSource(), that.getTrack(), that.getRoll());
    }
  }
  