• Post Reply Bookmark Topic Watch Topic
  • New Topic

Alternative to implement embedded key mapping

 
Himai Minh
Ranch Hand
Posts: 1400
8
  • 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:
 
Switching from electric heat to a rocket mass heater reduces your carbon footprint as much as parking 7 cars. 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!