• Post Reply Bookmark Topic Watch Topic
  • New Topic

About removingWithRelationshipsCascade in JPA Pro 2

 
Himai Minh
Ranch Hand
Posts: 1400
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In removingWithRelationshipsCascade example in Chapter 6 of this book,

I found out that if the employee is removed , the parking space is removed as well.

I modified this code into this :

If the employee is removed, the parking space is still there.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!