?? religiousspots.java
字號(hào):
/* * 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 + "]"; }}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -