| We currently unproxy entities even if we don’t really need to. In particular:
- When we only need the ID, and the ID is retrieved through a getter, we don't need to unproxy
- (Probably much harder to implement) When we use getter access exclusively, and the type of the proxy is the type declaring the getter or a subtype, we don't need to unproxy
See:
- org.hibernate.search.v6poc.entity.pojo.mapping.impl.PropertyIdentifierMapping#getIdentifier
- org.hibernate.search.v6poc.entity.pojo.mapping.impl.CachingCastingEntitySupplier#get
- (Once PR #38 has been merged) org.hibernate.search.v6poc.entity.pojo.dirtiness.impl.PojoImplicitReindexingResolverCastedTypeNode#resolveEntitiesToReindex
|