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

📄 person.java

📁 在Netbeans开发环境下使用HIBERNATE开发的入门例子
💻 JAVA
字号:
/* * Person.java * * Created on August 7, 2006, 8:21 AM * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */package hibernatetravelpojo;public class Person implements java.io.Serializable {        /** Creates a new instance of Person */    public Person() {    }    /**     * Holds value of property personId.     */    private int personId;          /**     * Getter for property personId.     * @return Value of property personId.     */    public int getPersonId() {        return this.personId;    }    /**     * Setter for property personId.     * @param personId New value of property personId.     */    private void setPersonId(int personId) {        this.personId = personId;    }    /**     * Holds value of property name.     */    private String name;    /**     * Getter for property name.     * @return Value of property name.     */    public String getName() {        return this.name;    }    /**     * Setter for property name.     * @param name New value of property name.     */    public void setName(String name) {        this.name = name;    }    /**     * Holds value of property jobTitle.     */    private String jobTitle;    /**     * Getter for property jobTitle.     * @return Value of property jobTitle.     */    public String getJobTitle() {        return this.jobTitle;    }    /**     * Setter for property jobTitle.     * @param jobTitle New value of property jobTitle.     */    public void setJobTitle(String jobTitle) {        this.jobTitle = jobTitle;    }    /**     * Holds value of property frequentFlyer.     */    private boolean frequentFlyer;    /**     * Getter for property frequentFlyer.     * @return Value of property frequentFlyer.     */    public boolean isFrequentFlyer() {        return this.frequentFlyer;    }    /**     * Setter for property frequentFlyer.     * @param frequentFlyer New value of property frequentFlyer.     */    public void setFrequentFlyer(boolean frequentFlyer) {        this.frequentFlyer = frequentFlyer;    }    /**     * Holds value of property trips.     */    private java.util.Set trips;    /**     * Getter for property trips.     * @return Value of property trips.     */    public java.util.Set getTrips() {        return this.trips;    }    /**     * Setter for property trips.     * @param trips New value of property trips.     */    public void setTrips(java.util.Set trips) {        this.trips = trips;    }    }

⌨️ 快捷键说明

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