I'm using ORMLite and wanted to know if there is a way to implement a cache in order to prevent querying multiple times for the same object. For example when it is annotated as "foreign = true" and "foreignAutoRefresh = true"
The question is not about "how to make a cache" but "how can I make ORMLite look for an object in, say, a WeakHashMap and query for it in the DB if it is not found there"