You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static final String STATUS_IDLE = "idle";
public static final String STATUS_REQUEST = "request";
public static final String STATUS_OUT = "out";
// JPA 主键标识, 策略为由数据库生成主键
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Long id;
public String doubanId;
public String title;
public String url;
public String status;
@ManyToOne
@JoinColumn(name = "owner_id")
public Account owner;
public Date onboardDate;
@ManyToOne
@JoinColumn(name = "borrower_id")
public Account borrower;
public Date borrowDate;
public Book() {
}
public Book(Long id) {
this.id = id;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
}
The text was updated successfully, but these errors were encountered:
// JPA实体类的标识
@entity
public class Book {
}
The text was updated successfully, but these errors were encountered: