ziplocation.java

来自「仿照著名的petstore写的网上书店」· Java 代码 · 共 50 行

JAVA
50
字号
/* 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 + =
减小字号Ctrl + -
显示快捷键?