📄 address.java
字号:
package entity;
import javax.persistence.*;
/**
* @author Antonio Goncalves
*/
@Entity
@Table(name = "t5_address")
public class Address {
// ======================================
// = Attributs =
// ======================================
@Id
@GeneratedValue
private Long id;
private String street;
@Column(length = 100)
private String city;
@Column(name = "zip_code", length = 10)
private String zipcode;
@Column(length = 50)
private String country;
// ======================================
// = Constructors =
// ======================================
public Address() {
}
public Address(String street, String city, String zipcode, String country) {
this.street = street;
this.city = city;
this.zipcode = zipcode;
this.country = country;
}
// ======================================
// = Getters & Setters =
// ======================================
public Long getId() {
return id;
}
public String getStreet() {
return street;
}
public void setStreet(String street) {
this.street = street;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getZipcode() {
return zipcode;
}
public void setZipcode(String zipcode) {
this.zipcode = zipcode;
}
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -