Correction to be able to find on object with Enum as id.

This commit is contained in:
Jacques committed 2013-04-10 18:19:59 +02:00
1 parent 4a618189d2
commit dcae62e9ee
3 files changed
+82 -1

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);
}