private void updateEntityMappers ( ) { for ( Entry < Integer , EntitySchema > entry : schemaManager . getEntitySchemas ( tableName , entityName ) . entrySet ( ) ) { if ( ! entityMappers . containsKey ( entry . getKey ( ) ) ) { AvroEntitySchema writtenSchema = ( AvroEntitySchema ) entry . getValue ( ) ; EntityMapper < ENTITY > entityMapper = constructWrappedEntityMapper ( keySchema , entitySchema , writtenSchema , entityClass ) ; entityMappers . put ( entry . getKey ( ) , entityMapper ) ; } } }
Update the map of wrapped entity mappers to reflect the most recent entity schema metadata returned by the schemaManager .