mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
Correction to be able to find on object with Enum as id.
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user