文件名称:JPA例子(里面有一对一,一对多的例子)
文件大小:1.83MB
文件格式:RAR
更新时间:2012-08-26 14:12:40
JPA
JPA的几个例子,一对一,一对多。 @ManyToOne(cascade = {CascadeType.ALL}, fetch = FetchType.LAZY) @JoinColumn(name = "personid", unique = false, nullable = true, insertable = true, updatable = true) public Person getPerson() { return this.person; } public void setPerson(Person person) { this.person = person; }