Assume having an xml mapping as:
<entity-mappings xmlns="http://www.hibernate.org/xsd/orm/mapping"> <entity name="org.hibernate.search.mapper.orm.coordination.outboxpolling.event.impl.OutboxEvent" class="org.hibernate.search.mapper.orm.coordination.outboxpolling.event.impl.OutboxEvent" access="FIELD"> <table name="MY_TABLE_NAME"></table> <tenant-id name="tenantId"/> <attributes> <id name="id"></id> [...] </attributes> </entity> </entity-mappings>
tenantId does not get mapped as @TenantId, and no value is set on persisting entities.