• Post Reply Bookmark Topic Watch Topic
  • New Topic

Alternative to implement embedded key mapping  RSS feed

 
Himai Minh
Ranch Hand
Posts: 1574
10
  • 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
Boost this thread!