Recently, I had to solve a problem that required connecting to the database, querying for some data and doing something useful with it. The only problem was, the normal ‘framework’ way of doing things in addition the way the project was structured and written prevented me from doing this using the ‘framework’. So, like all developers do I tried again using a different approach, it still wouldn’t work as expected.
Finally, I had to use the basic Java way of doing database connectivity and querying to get the job done. It worked!