When attempting to traverse a property path without using the generated Metamodel, a ClassCastException in the domain when the mapping is as follows:
And the path is accessed in the following way
When the join for the embedded type is accessed using a Metamodel derived path, this works as expected.
I've attached a test case & stack trace generated illustrating both.
Tested on Linux Suse OS using maven 3.1.1