dependency « Entity « JPA Q&A





1. How can I specify dependency in JPA without links from owner entity?    stackoverflow.com

The goal is to remove all Dependent when their Owner is deleted. I have the following classes:

@Entity
class Dependent {    
    @ManyToOne(cascade = CascadeType.PERSIST, fetch = ...