
Originally Posted by
RithanyaLaxmi
Thanks. What is happening right now is we are having all our queries irrespective of the modules in a single XML file which is loaded during the startup as an eager loading. Similarly there are DAO's irrespective of the modules will be loaded during the startup as a eager loading in spring.
Now my requirement is to make sure only the HQL queries specific to the DAO will be loaded and more importantly i am working in a module called Customer Management, hence I want to load only the DAO specific to that Customer Management like CustomerServiceImpl and CustomerDAOImpl. Where I dont want to load the other modules like Invoice Management which Customer Management doesnot have any dependency. By doing so, i will be loading the respective DAO's specific to my module on demand using lazy-init="true". Another thing is when I load my module specific DAO i want my HQL queries to be loaded as well rather than clubbing all the module specific HQL queries in a single XML and load it. I want to segregate and load only the HQL queries specific to my module when I load the DAOImpl for that module.
I hope you got my point. Please clarify how we can proceed with this?
Thanks.