My project has the following packages in its structure:
- br.com.xxxx.model : Which contains the entities.
- br.com.xxxx.business : That contains the DAO interface together with the classes that implement it.
- br.com.xxxx.controle : Contains Managed Bean's.
- br.com.xxxx.util : It has utilitarian classes.
My question is this: my DAO classes need to follow the DAO implementation, but depending on the entity I can have different behaviors, for example a query that may have different fields.
How can I handle this? Could I create an "extra" class with these differences?