abstractcustomers.java

来自「Hibernate一对多和多对一双向: 运行平台 Windows 2000 W」· Java 代码 · 共 76 行

JAVA
76
字号
package com.cat.hibernate.customer;

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



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

public abstract class AbstractCustomers  implements java.io.Serializable {


    // Fields    

     private Long id;
     private String name;
     private Set orders=new HashSet();


     public Set getOrders()
     {
    	 return this.orders;
     }
     
     public void setOrders(Set orders)
     {
    	 this.orders=orders;
     }
     
    // Constructors

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

	/** minimal constructor */
    public AbstractCustomers(Long id) {
        this.id = id;
    }
    
    /** full constructor */
    public AbstractCustomers(Long id, String name) {
        this.id = id;
        this.name = name;
    }

   
    // 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;
    }
   








}

⌨️ 快捷键说明

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