Hey,

In ORM's PropertyFactory#getGetter() line 317 I see that
mappingProperty.getClass() is passed to
resolvePropertyAccessStrategy() [1]. I.e. the type
org.hibernate.mapping.Property or similar will be passed here.

Is this actually correct? It seems
mappingProperty.getPersistentClass().getMappedClass() should be passed
instead; As per the parameter docs it's "The java class of the entity"
and the usage in PropertyAccessStrategyResolverStandardImpl confirms
that.

Thanks,

--Gunnar

[https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/tuple/PropertyFactory.java#L317]
_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to