Although not visible in Mendix, internally every object has an ID. Those are the numbers you see in the debugger for an object or association.
so if you run in Mendix 8
select * from Sample.Customer
the result is
If this does not work in your version, file a support ticket.