In Java, you do need to write the whole queries, including the double slashes (//
) and the entity name. This wisdom I read at https://docs.mendix.com/refguide/xpath.
And read this https://docs.mendix.com/refguide/java-programming, if you have not done so already.