mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Correction to be able to find on object with Enum as id.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user