Been transitioning Hibernate mappings from HBM files to annotations recently at work. This post is more of a note to myself.
inverse="true" becomes
@OneToMany(mappedBy="someProperty")
cascade="all-delete-orphan" becomes
@Cascade(type=CascadeType.DELETE_ORPHANS)
0 comments: