我想在Java Hibernate自动创建表时将255增加到1000,但是如何做到这一点?
可能需要更改的部分代码:
@Entity
public class Work implements Serializable {
@Id
@GeneratedValue
private long workNumber;
private int fromYear;
private int tillYear;
private String name;
private String profession;
private String description;
@ManyToOne
private User user;
public Work() {
}
public Work(long workNumber, int fromYear, int tillYear, String name, String profession, String description) {
this.setWorkNumber(workNumber);
this.setFromYear(fromYear);
this.setTillYear(tillYear);
this.setName(name);
this.setProfession(profession);
this.setDescription(description);
}