product.java

来自「想学习EJB的同学」· Java 代码 · 共 56 行

JAVA
56
字号
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package ejb3.day2;import java.io.Serializable;/** * * @author user */public class Product implements Serializable{    private int id;    private String name;    private float price;    public Product(){}    public Product(int id, String name, float price){        this.id = id;        this.name = name;        this.price = price;    }        public int getId() {        return id;    }    public void setId(int id) {        this.id = id;    }    public String getName() {        return name;    }    public void setName(String name) {        this.name = name;    }    public float getPrice() {        return price;    }    public void setPrice(float price) {        this.price = price;    }        @Override    public String toString(){        return "Product: id=" + id + ", name=" + name + ",price=" + price;    }    }

⌨️ 快捷键说明

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