Hi,
i need some help with managing a persistent tree-structure. mainly it will be used in a user-interface to display hierarchically the stored data
i have allready a solution on the database-side that fits my needs:
tables:
TreeIndex -> an index of my different trees
node, node-relations -> there can be bidirectional n:m relations between the nodes
node-type -> e.g. this node is a country-node and it childs are cities
data-item, data-item-type -> can be attached to a node e.g. the number of inhabitants of a city
now i tried to implement a working services to manage my different trees but its gotten very unhandy and ugly. particularly doing changes to an existing tree seems very troublesome.
anyone knows some reading/books about managing tree-structures with ORM (Hibernate would be great ;) )
|