我不太明白这一点。我有一个名为Employee with和Id字段的表。该表还包含一个ManagerId字段,该字段具有一个指向员工Id字段的外键。当我将该表作为一个实体添加到我的实体数据模型中时,它会创建一个带有EmployeeChildren集合元素和EmployeeParent元素的新Employee实体。我可以检索所有Employee的,并将它们放入Employee实体perfect的新实例中。employee实体将有许多子实体,每个子实体可以有许多自己的子实体,并且每个子实体都有一个指向其父实体的指针。
我现在需要做的是使用存储过程检索这些员工的子集。现在,如果我搜索雇员John D
org.springframework.http.converter.HttpMessageNotWritableException: Could not com.fasterxml.jackson.databind.JsonMappingException: Direct self-reference
org.springframework.http.converter.HttpMessageNotWritableException: Could not write content: Direct self-referenceorg.postgis.Point["firstPoint"]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Direct self-reference
org.springframework.aop.ClassFilter]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Direct self-referenceclassFilter"])] with root cause
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Direct self-reference