vw98034 (25) [Avatar] Offline
#1
I don't know whether this one is reported before or not. On page 283,

@OneToMany(cascade = CascadeType.ALL)
@Cascade(org.hibernate.annotations.CascadeType.DELETE_ORPHAN)
@JoinColumn(name = "comment_target_id", nullable = false)
public List<Comment> getComments() { return comments; }

where org.hibernate.annotations.CascadeType.DELETE_ORPHAN is deprecated in Hibernate 4.1.
willie.wheeler (110) [Avatar] Offline
#2
Re: Deprecated Hibernate Annotation
Thanks!