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

📄 ziplocation.java

📁 仿照著名的petstore写的网上书店
💻 JAVA
字号:
/* Copyright 2006 Sun Microsystems, Inc. All rights reserved. You may not modify, use, reproduce, or distribute this software except in compliance with the terms of the License at: http://developer.sun.com/berkeley_license.html$Id: ZipLocation.java,v 1.4 2006/05/05 20:15:25 inder Exp $ */package com.sun.javaee.blueprints.petstore.model;import javax.persistence.Entity;import javax.persistence.Id;/** * This class represents the data used for autocomplete of a  * user input for zipcode, city, state.*/@Entitypublic class ZipLocation implements java.io.Serializable {    private int zipCode;    private String city;    private String state;             public ZipLocation() { }       @Id    public int getZipCode() {        return zipCode;    }        public String getCity() {        return city;    }    public String getState() {        return state;    }    public void setZipCode(int zipCode) {        this.zipCode = zipCode;    }        public void setCity(String city) {        this.city = city;    }    public void setState(String state) {        this.state = state;    }  }

⌨️ 快捷键说明

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