为什么POJO Java类必须实现Serializable接口?如果我不实现Serializable会发生什么?
@Entity
@Table(name="Customer")
public class Customer implements Serializable {
private static final long serialVersionUID = -5294188737237640015L;
/**
* Holds Customer id of the customer
*/
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "cust_id")
private int Custid;
/** Holds first Name of the customer*/
@Column(name = "first_name")
private String firstName;
/** Holds last Name of the customer */
@Column(name = "last_name")
private String lastName;
/** Holds Customer mobile number of customer*/
@Column(name = "cust_mobile")
private long MobileNo;
/**Holds customer address of customer*/
@Column(name = "cust_address")