fixed transient checks
@@ -192,7 +192,7 @@ public class MorphiaConvention implements Convention {
private static boolean isTransient(final FieldModelBuilder<?> field) {
return field.hasAnnotation(Transient.class)
|| field.hasAnnotation(java.beans.Transient.class)
- || Modifier.isTransient(field.getTypeData().getType().getModifiers());
+ || Modifier.isTransient(field.getField().getModifiers());
}
private static String getMappedFieldName(FieldModelBuilder<?> field) {
