3 ms·
You can use 2 spaces before and you get a <code> block. AI should be able to do it for you if you ask it to since its good at transforming between formats. p
by Jensson 1y ago
You can use 2 spaces before and you get a <code> block. AI should be able to do it for you if you ask it to since its good at transforming between formats.
public void getEntityWithParents(List<DBEntity> entityList, String id) {
DBEntity entity = dao.getById(id);
entityList.add(entity);
if (entity.getParent() != null) {
getEntityWithParents(entityList, entity.getId());
}
}