?? orderitemsid.java
字號:
package com.yc.model;
import java.util.Date;
/**
* OrderitemsId entity.
*
* @author MyEclipse Persistence Tools
*/
public class OrderitemsId implements java.io.Serializable {
// Fields
private Long id;
private Long flightId;
private Date date;
private Flights flight;
// Constructors
/** default constructor */
public OrderitemsId() {
}
/** full constructor */
public OrderitemsId(Long id, Long flightId, Date date) {
this.id = id;
this.flightId = flightId;
this.date = date;
}
// Property accessors
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public Long getFlightId() {
return this.flightId;
}
public void setFlightId(Long flightId) {
this.flightId = flightId;
}
public Date getDate() {
return this.date;
}
public void setDate(Date date) {
this.date = date;
}
public void setFlight(Flights flight)
{
this.flight=flight;
}
public Flights getFlight()
{
return this.flight;
}
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof OrderitemsId))
return false;
OrderitemsId castOther = (OrderitemsId) other;
return ((this.getId() == castOther.getId()) || (this.getId() != null
&& castOther.getId() != null && this.getId().equals(
castOther.getId())))
&& ((this.getFlightId() == castOther.getFlightId()) || (this
.getFlightId() != null
&& castOther.getFlightId() != null && this
.getFlightId().equals(castOther.getFlightId())))
&& ((this.getDate() == castOther.getDate()) || (this.getDate() != null
&& castOther.getDate() != null && this.getDate()
.equals(castOther.getDate())));
}
public int hashCode() {
int result = 17;
result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
result = 37 * result
+ (getFlightId() == null ? 0 : this.getFlightId().hashCode());
result = 37 * result
+ (getDate() == null ? 0 : this.getDate().hashCode());
return result;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -