fix IJPACommData
parent
c2034bc6fc
commit
ece079137b
|
@ -104,7 +104,7 @@ public interface IJPACommData< T extends Id<ID>, ID> extends ICommonData<T , ID
|
||||||
|
|
||||||
Optional one = getBaseRepository().findOne(example);
|
Optional one = getBaseRepository().findOne(example);
|
||||||
if(one.isPresent()){
|
if(one.isPresent()){
|
||||||
MapstructUtils.convert(one.get(), getTClass());
|
return (T) MapstructUtils.convert(one.get(), getTClass());
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue