You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a class hierarchy and when saving an object of the subclass, it does not actually set the values for the columns that correspond to the attributes of the super class. The issue is in the following line:
com.eharmony.pho.mapper.EntityPropertiesMappingContext
private Set buildEntityPropertiesSet(Class<? extends Object> clz, String parentProperty) {
Set<EntityPropertyBinding> entityPropertiesSet = new HashSet<EntityPropertyBinding>();
133 Field[] fields = clz.getDeclaredFields();
Because it uses getDeclaredFields is only sees the fields in the current class. This should be using getFields().
The text was updated successfully, but these errors were encountered:
I created a class hierarchy and when saving an object of the subclass, it does not actually set the values for the columns that correspond to the attributes of the super class. The issue is in the following line:
com.eharmony.pho.mapper.EntityPropertiesMappingContext
private Set buildEntityPropertiesSet(Class<? extends Object> clz, String parentProperty) {
133 Field[] fields = clz.getDeclaredFields();
Because it uses getDeclaredFields is only sees the fields in the current class. This should be using getFields().
The text was updated successfully, but these errors were encountered: