update UserGuide.md (#1954)
Id Class does not have get method, we should new a instance.
This commit is contained in:
parent
4f2aeaa288
commit
9484297fbb
@ -429,7 +429,7 @@ class IdInstanceCreator implements InstanceCreator<Id<?>> {
|
||||
public Id<?> createInstance(Type type) {
|
||||
Type[] typeParameters = ((ParameterizedType)type).getActualTypeArguments();
|
||||
Type idType = typeParameters[0]; // Id has only one parameterized type T
|
||||
return Id.get((Class)idType, 0L);
|
||||
return new Id((Class)idType, 0L);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user