1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| package org.pyr.entity;
import javax.persistence.*;
@Entity @Table(name = "cst_customer") public class Customer{
@Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "cust_id") private Long custId;
@Column(name = "cust_name") private String custName;
public void setCustId(Long custId) { this.custId = custId; }
public void setCustName(String custName) { this.custName = custName; }
@Override public String toString() { return "Customer{" + "custId=" + custId + ", custName='" + custName + '\'' + '}'; } }
|