Hierarchical trees with PostgreSQL and Spring Data JPA

He who plants a tree,
Plants a hope.
Lucy Larcom, Plant a tree 🌳

In this post, I offer you a guide for modelling a hierarchical tree in your application. I’ll show you a couple of approaches for implementing it, and analyse some operational characteristics pertaining to each. To mention some examples – a hierarchical tree structure is applicable for example when you need to implement things like file systems (each folder can have several files), or organizational charts (manager-employee relationship).


Discover more from Coursity

Subscribe to get the latest posts sent to your email.

Leave a Comment

Your email address will not be published. Required fields are marked *

Discover more from Coursity

Subscribe now to keep reading and get access to the full archive.

Continue reading

Scroll to Top
Banjo catfish blue eye mrigal sarcastic fringehead harelip sucker bramble shark hake southern.