Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alternative to implement embedded key mapping

 
Himai Minh
Ranch Hand
Posts: 1359
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, for your information,
regarding to embeddableKeyMapping in chapter 5:
The Employee entity has @column for F_NAME and L_NAME. But there is also an embedded EmployeeName defined.
The original code is:


I changed it into :




In the servlet, it becomes:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic