⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orderitemsid.java

📁 基于Struts+Spring+Hibernate的航空票务系统
💻 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 + -