What should be used in Mendix 4 instead of getGuid (Java)

1
When creating a retrieveXPathQueryEscaped I always used the Guid to constrain on an association. This method is deprecated.
asked
1 answers
4

From the comment that comes with the deprecated warning `Deprecated. Use getMendixObject().getId().toLong() to get a unique identifier for this object.

`

answered