关于注解的小问题...在线等
<many-to-one column="attID" name="attachments" class="PostAttachments" cascade="save-update,delete"/> 配置成注解 怎么配的?
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "attID")
public PostAttachments getAttachments() {
return attachments;
}
应该怎么设定后面的关联关系?save-update,delete