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

📄 address.java

📁 hibernate quickly 一书的各章节源代码
💻 JAVA
字号:
package com.manning.hq.ch09;

import java.io.Serializable;

/**
 * An Address component, it's not have its own identity.
 *
 * By using hibernate.column tags rather than just hibernate.property, it allows
 * hibernate.component tags to prefix the columns, allowing multiple components on a single
 * Location.
 */ 
public class Address implements Serializable {
    private String streetAddress;
    private String city;
    private String state;
    private String zipCode;

    /**
     * @hibernate.property
     * @hibernate.column name="street_address"
     * @return
     */
    public String getStreetAddress() { return streetAddress; }
    public void setStreetAddress(String streetAddress) { this.streetAddress = streetAddress;}

    /**
     * @hibernate.property
     * @hibernate.column name="city"
     * @return
     */
    public String getCity() { return city; }
    public void setCity(String city) { this.city = city; }

    /**
     * @hibernate.property
     * @hibernate.column name="state"
     * @return
     */
    public String getState() { return state; }
    public void setState(String state) { this.state = state; }

    /**
     * @hibernate.property
     * @hibernate.column name="zip_code"
     * @return
     */
    public String getZipCode() { return zipCode; }
    public void setZipCode(String zipCode) { this.zipCode = zipCode;    }


}

⌨️ 快捷键说明

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