I have an application which already written in Hibernate and is mapped to hiberante database annotations (and in the background I am using Postgres as DB). I was wondering if there is a way to keep the database as is, but to add another level of "database" which holds everything In-Memory in java object?
What I mean is, 1) keep Postgres update when there is update/delete/create and only return after it is really commited.
2) when some DB Read queries executed, I want to be able to return the answer using my java object And avoid calling the database for those Read operations