This should be solved in the Search 6 proof of concept, but we need to add tests for IDs specifically in OrmAnnotationMappingAccessTypeIT and OrmProgrammaticMappingAccessTypeIT.