I'm not sure what the intended behavior is. I'm fairly certain this works in eclipse link, and the jpa spec wasn't too clear about it.