Class PersonEntity

java.lang.Object
cn.net.pap.neo4j.entity.PersonEntity
All Implemented Interfaces:
Serializable

@Node("person") public class PersonEntity extends Object implements Serializable
1、可以在类文件上添加 @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "personId") 注解处理循环引用,使用对象的属性作为唯一标识符, ObjectMapper objectMapperJsonIdentityInfo = new ObjectMapper(); String jsonIdentityInfoStr = objectMapperJsonIdentityInfo.writeValueAsString(p2);
See Also:
  • Constructor Details

    • PersonEntity

      public PersonEntity()
  • Method Details

    • getPersonId

      public String getPersonId()
    • setPersonId

      public void setPersonId(String personId)
    • getPersonName

      public String getPersonName()
    • setPersonName

      public void setPersonName(String personName)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getHobbys

      public List<HobbyEntity> getHobbys()
    • setHobbys

      public void setHobbys(List<HobbyEntity> hobbys)
    • getParents

      public List<PersonEntity> getParents()
    • setParents

      public void setParents(List<PersonEntity> parents)
    • getChildrens

      public List<PersonEntity> getChildrens()
    • setChildrens

      public void setChildrens(List<PersonEntity> childrens)