@@ -0,0 +1,1252 @@
+package vn.com.hiringviet.model;%0A%0Aimport java.io.Serializable;%0Aimport java.util.List;%0A%0Aimport javax.persistence.CascadeType;%0Aimport javax.persistence.Column;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.FetchType;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.GenerationType;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.JoinColumn;%0Aimport javax.persistence.OneToMany;%0Aimport javax.persistence.Table;%0A%0A@Entity%0A@Table(name = %22country%22)%0Apublic class Country implements Serializable %7B%0A%09/**%0A%09 * %0A%09 */%0A%09private static final long serialVersionUID = 1L;%0A%0A%09private int id;%0A%0A%09private String countryName;%0A%0A%09private List%3CProvince%3E provinces;%0A%0A%09@Id%0A%09@GeneratedValue(strategy = GenerationType.IDENTITY)%0A%09public int getId() %7B%0A%09%09return id;%0A%09%7D%0A%0A%09public void setId(int id) %7B%0A%09%09this.id = id;%0A%09%7D%0A%0A%09@Column(name = %22country_name%22)%0A%09public String getCountryName() %7B%0A%09%09return countryName;%0A%09%7D%0A%0A%09public void setCountryName(String countryName) %7B%0A%09%09this.countryName = countryName;%0A%09%7D%0A%0A%09@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)%0A%09@JoinColumn(name = %22province_id%22)%0A%09public List%3CProvince%3E getProvinces() %7B%0A%09%09return provinces;%0A%09%7D%0A%0A%09public void setProvinces(List%3CProvince%3E provinces) %7B%0A%09%09this.provinces = provinces;%0A%09%7D%0A%0A%7D%0A

Add Country Model