📄 tourlocation.java
字号:
/* * Tourlocation.java * * Created on Apr 5, 2008, 10:08:50 AM * * To change this template, choose Tools | Templates * and open the template in the editor. */package com.gecb.mcompanion.web.model;import java.io.Serializable;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.Id;import javax.persistence.JoinColumn;import javax.persistence.ManyToOne;import javax.persistence.NamedQueries;import javax.persistence.NamedQuery;import javax.persistence.Table;/** * * @author User */@Entity@Table(name = "tourlocation")@NamedQueries({@NamedQuery(name = "Tourlocation.findByTourlocationId", query = "SELECT t FROM Tourlocation t WHERE t.tourlocationId = :tourlocationId"), @NamedQuery(name = "Tourlocation.findByTourlocationName", query = "SELECT t FROM Tourlocation t WHERE t.tourlocationName = :tourlocationName"), @NamedQuery(name = "Tourlocation.findByTourlocationDescription", query = "SELECT t FROM Tourlocation t WHERE t.tourlocationDescription = :tourlocationDescription"), @NamedQuery(name = "Tourlocation.findByTourlocationSpeciality", query = "SELECT t FROM Tourlocation t WHERE t.tourlocationSpeciality = :tourlocationSpeciality")})public class Tourlocation implements Serializable { @Id @Column(name = "tourlocation_id", nullable = false) private Integer tourlocationId; @Column(name = "tourlocation_name") private String tourlocationName; @Column(name = "tourlocation_description") private String tourlocationDescription; @Column(name = "tourlocation_speciality") private String tourlocationSpeciality; @JoinColumn(name = "address_id", referencedColumnName = "address_id") @ManyToOne private Address addressId; public Tourlocation() { } public Tourlocation(Integer tourlocationId) { this.tourlocationId = tourlocationId; } public Integer getTourlocationId() { return tourlocationId; } public void setTourlocationId(Integer tourlocationId) { this.tourlocationId = tourlocationId; } public String getTourlocationName() { return tourlocationName; } public void setTourlocationName(String tourlocationName) { this.tourlocationName = tourlocationName; } public String getTourlocationDescription() { return tourlocationDescription; } public void setTourlocationDescription(String tourlocationDescription) { this.tourlocationDescription = tourlocationDescription; } public String getTourlocationSpeciality() { return tourlocationSpeciality; } public void setTourlocationSpeciality(String tourlocationSpeciality) { this.tourlocationSpeciality = tourlocationSpeciality; } public Address getAddressId() { return addressId; } public void setAddressId(Address addressId) { this.addressId = addressId; } @Override public int hashCode() { int hash = 0; hash += (tourlocationId != null ? tourlocationId.hashCode() : 0); return hash; } @Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof Tourlocation)) { return false; } Tourlocation other = (Tourlocation) object; if ((this.tourlocationId == null && other.tourlocationId != null) || (this.tourlocationId != null && !this.tourlocationId.equals(other.tourlocationId))) { return false; } return true; } @Override public String toString() { return "com.horizongroup.mcompanion.web.model.Tourlocation[tourlocationId=" + tourlocationId + "]"; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -