Json


Repository is an object responsible for storing entities states. It is used to find right objects and to store them for later use. Here I would like to show you how to implement a simple repository in Java using PostgreSQL database and JSONB type available there. The solution is very simple to implement. Although it has its weaknesses it is often the good enough one.