Adding custom object to an entity

When not using the new entity api, you could pass an object in to be saved on the object using the id property. Can something similar be done with the entity api? Looks like the id property is now used (a uuid). I'm looking to be able to set some kind of custom id or object on the entity so when picked, I can look at the data on it and use that to reference an object it refers to.