• Post Reply Bookmark Topic Watch Topic
  • New Topic

modification for persistingWithRelationshipsUsingGetReference  RSS feed

 
Himai Minh
Ranch Hand
Posts: 1573
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think two modifications needs to be done for chapter 6's persistingWithRelationshipsUsingGetReference:




The second modification, originally in createEmployee method, it uses


But the objective of the example is to use getReference to return the proxy of Department,
so we should use getReference () instead.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!