Merge pull request #14 from Timshel/master

Correction not to fail with an IllegalArgumentException when using find on an object with an enum as id.
This commit is contained in:
Rob Bygrave committed 2013-04-15 04:42:13 -07:00
commit 66880aa340
4 files changed
+84 -3

No files matched your search

@@ -163,7 +163,9 @@ public final class IdBinderSimple implements IdBinder {
}
public void bindId(DataBind dataBind, Object value) throws SQLException {
value = idProperty.toBeanType(value);
if( !value.getClass().equals(expectedType) ){
value = scalarType.toBeanType(value);
}
idProperty.bind(dataBind, value);
}