Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About removingWithRelationshipsCascade in JPA Pro 2  RSS feed

 
Himai Minh
Ranch Hand
Posts: 1510
9
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!