fix:detachObject为空时报错

yun-zuoyi
汪云昊 5 years ago
parent 55b047448b
commit a3e8caf085

@ -61,6 +61,9 @@ public class BaseRepositoryImpl<T, ID extends Serializable> extends SimpleJpaRep
}
public void detachObject(T t){
if (t == null) {
return;
}
entityManager.detach(t);
}

Loading…
Cancel
Save