I am working on a project in which I have a singleton class which hold most frequently used objects. Now I want to create a DB using any good ORM library.
Is it possible?
If I update or delete an object in singleton, it should also update or delete in DB respectively, without writing any query or calling any ORM library method explicitly. Which ORM library support this feature? if possible please provide any tutorial link
If this is not possible, does that mean I have to update object in singleton and DB separately each time, which feels kind of bad practice.