Prevalent system interface based on the standard well known DAO pattern.
This prevalent system has the advantage of being business-agnostic, so you can use it for any business domain without implementing any additional code.
You just need to configure its {@link PrevalenceInfo}.
The prevalent classes is the most important information carried by the PrevalenceInfo object. Talking about them, just keep in mind the following rules:
- If you try to directly persist/retrieve an object of a class not configured here, the prevalent system will throw an exception.
- If you configure a prevalent class A, all its sub-classes/sub-interfaces will be considered prevalent. This is very important, because thanks to it you are able to do polymorphic data access operations: i.e. you are able to retrieve all objects of interface A.
Implementors need to be thread safe.
@author Sergio Bossa