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

📄 customer.java

📁 该系统的主要功能是
💻 JAVA
字号:
package com.laoniu.bean;

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

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;


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

public class Customer  implements java.io.Serializable {


    // Fields    

     private Long id;
     private String name;
     private String password;
     private String zip;
     private String address;
     private String telephone;
     private String email;
     private Set orderforms = new HashSet(0);


    // Constructors

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

    
    /** full constructor */
    public Customer(String name, String password, String zip, String address, String telephone, String email, Set orderforms) {
        this.name = name;
        this.password = password;
        this.zip = zip;
        this.address = address;
        this.telephone = telephone;
        this.email = email;
        this.orderforms = orderforms;
    }

   
    // 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 String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }

    public String getZip() {
        return this.zip;
    }
    
    public void setZip(String zip) {
        this.zip = zip;
    }

    public String getAddress() {
        return this.address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }

    public String getTelephone() {
        return this.telephone;
    }
    
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }

    public Set getOrderforms() {
        return this.orderforms;
    }
    
    public void setOrderforms(Set orderforms) {
        this.orderforms = orderforms;
    }
  /* public static void main(String arg[]){
	   
	   Customer customer=null;
	   Configuration config=new Configuration();
	   config.configure();
	   SessionFactory factory=config.buildSessionFactory();
	   Session session=factory.openSession();
	   Transaction tran=session.beginTransaction();
	   
	   customer=(Customer)session.get(Customer.class,new Long(1));
	   
	   System.out.println(customer.getName());
	   System.out.println(customer.getPassword());
	   
	   tran.commit();
	   
	   session.close();
   }*/



}

⌨️ 快捷键说明

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