Class Node


  • @Entity
    public class Node
    extends Object
    This class provides an example of a many-to-many, bi-directional relationship that just happens to be recursive. Both ends of the relationship reference an instance of this class.
    • Constructor Detail

      • Node

        public Node()
      • Node

        public Node​(String name)
      • Node

        public Node​(Node parent,
                    String name)
    • Method Detail

      • getId

        public String getId()
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getChildren

        public Set<Node> getChildren()
      • getParents

        public Set<Node> getParents()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object