I have two entities called User and UserProfile in my data model. Here is how they are mapped.
Code from User Entity:
@OneToOne(cascade=CascadeType.ALL) @P
With JPA 2.x , if you want a cascade remove then use orphanRemoval attribute :
orphanRemoval
@OneToMany(orphanRemoval=true)
check documentation here for more info.