Hector_Lopez wrote:
Not all operations are able to cascade, so cascade has to be set in a per-property basis. I don't use annotations, but if you edit your .hbm.xml files, you can set the property cascade="update" for the collection mappings.
Thanks, Hector. I actually defined as follows, which should be equivalent to cascade="save-update":
@ManyToOne
@Cascade(value={CascadeType.SAVE_UPDATE})
@JoinColumn(name="TAKER",nullable=false)
Defining the cascade when a save or update happens, but still it doesn't create the foreign key for that as "on update cascade".