Author: epbernard
Date: 2010-10-01 07:46:29 -0400 (Fri, 01 Oct 2010)
New Revision: 20761
Modified:
search/branches/Branch_3_2/hibernate-search/src/main/java/org/hibernate/search/impl/MappingModelMetadataProvider.java
Log:
HSEARCH-591 fix issue when programmtic mapping was raising exception on non getter
methods
Modified:
search/branches/Branch_3_2/hibernate-search/src/main/java/org/hibernate/search/impl/MappingModelMetadataProvider.java
===================================================================
---
search/branches/Branch_3_2/hibernate-search/src/main/java/org/hibernate/search/impl/MappingModelMetadataProvider.java 2010-09-30
17:47:19 UTC (rev 20760)
+++
search/branches/Branch_3_2/hibernate-search/src/main/java/org/hibernate/search/impl/MappingModelMetadataProvider.java 2010-10-01
11:46:29 UTC (rev 20761)
@@ -269,10 +269,13 @@
elementType = ElementType.METHOD;
}
else {
- throw new SearchException( "Error in programmatic mapping. Method " +
propertyName + " is not a property getter" );
+ //this is a non getter method, so let it go and delegate
+ entityType = null;
+ propertyName = null;
}
}
else {
+ //this is a non supported element, so let it go and delegate
entityType = null;
propertyName = null;
}
Show replies by date