One to one composition vs. one to one association
<p>I have a customer with an address. The address should be deleted if the customer will be deleted. In my opinion it is a composition. But compositions in cuba are only one to many. </p>

<p>I solved it with in one to one association and the cascade type ALL:</p>

<pre><code>@OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
protected address
</code></pre>

<p>Is this the way I have to go?</p>