📄 authoraddress.java
字号:
package com.hibernatebook.annotations;
import javax.persistence.*;
@Embeddable
public class AuthorAddress {
private String address;
private String country;
// Constructors...
protected AuthorAddress() {
}
public AuthorAddress(String address, String country) {
this.address = address;
this.country = country;
}
// Getters...
public String getAddress() {
return address;
}
public String getCountry() {
return country;
}
// Setters...
public void setAddress(String address) {
this.address = address;
}
public void setCountry(String country) {
this.country = country;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -