book.java

来自「网上售书电子商务网站」· Java 代码 · 共 79 行

JAVA
79
字号
package com.briup.bean;

import java.util.HashSet;
import java.util.Set;


/**
 * Book generated by MyEclipse - Hibernate Tools
 */

public class Book  implements java.io.Serializable {


    // Fields    

     private Long id;
     private String name;
     private Double price;
     private Set orderlines = new HashSet(0);


    // Constructors

    /** default constructor */
    public Book() {
    }

    
    /** full constructor */
    public Book(String name, Double price, Set orderlines) {
        this.name = name;
        this.price = price;
        this.orderlines = orderlines;
    }

   
    // Property accessors

    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return this.price;
    }
    
    public void setPrice(Double price) {
        this.price = price;
    }

    public Set getOrderlines() {
        return this.orderlines;
    }
    
    public void setOrderlines(Set orderlines) {
        this.orderlines = orderlines;
    }
   








}

⌨️ 快捷键说明

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