I have seen the tree model or composite design pattern at
http://www.hibernate.org/86.html. However my question is about Graph model. The Graph model is more complicated than tree model. Firstly it not only allow multiple children (destination) but also multiple parents (sources). The composite pattern can use one database table e.g site as described in the link above while the graph model would introduce another table, for instance rule table and one-to-many relationship. The rule table keeps the information about relationship between nodes (parent nodes are the source node; the child nodes are the destination in Graph Model point of view).
How to use hibernate for this model?
Many thanks!