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

📄 religiousspots.java

📁 This is a project used to find a corresondin location from place
💻 JAVA
字号:
/* * Religiousspots.java *  * Created on Apr 5, 2008, 10:08:52 AM *  * To change this template, choose Tools | Templates * and open the template in the editor. */package com.horizongroup.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 = "religiousspots")@NamedQueries({@NamedQuery(name = "Religiousspots.findByRsId", query = "SELECT r FROM Religiousspots r WHERE r.rsId = :rsId"), @NamedQuery(name = "Religiousspots.findByRsName", query = "SELECT r FROM Religiousspots r WHERE r.rsName = :rsName"), @NamedQuery(name = "Religiousspots.findByMythology", query = "SELECT r FROM Religiousspots r WHERE r.mythology = :mythology"), @NamedQuery(name = "Religiousspots.findByHistory", query = "SELECT r FROM Religiousspots r WHERE r.history = :history")})public class Religiousspots implements Serializable {    @Id    @Column(name = "rs_id", nullable = false)    private Integer rsId;    @Column(name = "rs_name", nullable = false)    private String rsName;    @Column(name = "mythology", nullable = false)    private String mythology;    @Column(name = "history")    private String history;    @JoinColumn(name = "address_id", referencedColumnName = "address_id")    @ManyToOne    private Address addressId;    public Religiousspots() {    }    public Religiousspots(Integer rsId) {        this.rsId = rsId;    }    public Religiousspots(Integer rsId, String rsName, String mythology) {        this.rsId = rsId;        this.rsName = rsName;        this.mythology = mythology;    }    public Integer getRsId() {        return rsId;    }    public void setRsId(Integer rsId) {        this.rsId = rsId;    }    public String getRsName() {        return rsName;    }    public void setRsName(String rsName) {        this.rsName = rsName;    }    public String getMythology() {        return mythology;    }    public void setMythology(String mythology) {        this.mythology = mythology;    }    public String getHistory() {        return history;    }    public void setHistory(String history) {        this.history = history;    }    public Address getAddressId() {        return addressId;    }    public void setAddressId(Address addressId) {        this.addressId = addressId;    }    @Override    public int hashCode() {        int hash = 0;        hash += (rsId != null ? rsId.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 Religiousspots)) {            return false;        }        Religiousspots other = (Religiousspots) object;        if ((this.rsId == null && other.rsId != null) || (this.rsId != null && !this.rsId.equals(other.rsId))) {            return false;        }        return true;    }    @Override    public String toString() {        return "com.horizongroup.mcompanion.web.model.Religiousspots[rsId=" + rsId + "]";    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -