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

This commit is contained in:
Jacques
2013-04-10 18:19:59 +02:00
parent 4a618189d2
commit dcae62e9ee
3 changed files with 82 additions and 1 deletions
@@ -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);
}