Image may be NSFW.
Clik here to view.
Clik here to view.

Few days ago I was digging through the code in some project to find the reason why EclipseLink (2.1.1) is performing database insert instead of update. Let me say, that it was the hardest thing to find in my whole JPA-using developer career - this post is for the records, and to let you find it faster than me ;)
Image may be NSFW.
Clik here to view.