Yes on all cases I doubt the JPA EG realized what can of worms they were opening with the introduction of the treat operator. As far as I can see, all conditional contexts should use the same behavior. In the end, this needs to be formalized in the JPA specification, with TCK coverage. The current specification leaves way too much open to interpretation. |