Coin Trader is a Java-based backend for algorithmically trading cryptocurrencies. It provides data collection and export, complex event processing and triggering, and backtesting - paper trading - live trading.
create new persistence module that creates static injections for the static queries
create a factory that can be used per object with assisted injection to create key objects such as * order,fills, positions etc that need to be persisted
create DAO per persisted object and inject dao for persistence.
inject new jpapersitancemodule to use guice's transactional annotations
https://github.com/google/guice/wiki/GuicePersist https://github.com/google/guice/wiki/AssistedInject