DAO Refactoring: Finally!
2 December 2008Well, it took a little longer than I care to admit, but I finally got back to here:
[INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute 41 seconds [INFO] Finished at: Tue Dec 02 18:41:45 PST 2008 [INFO] Final Memory: 16M/39M [INFO] ------------------------------------------------------------------------
My goal was to resolve all of the warning messages that had cropped up in the core project once I changed the Java version to 5.0, but I have to admit that after a while I got a little lazy and just slipped in the old @SuppressWarnings(“unchecked”) in more places than are really appropriate, just to speed up my journey to “done”. Also, it didn’t help that I had stubbed out the findByTableIdEntryId method (“return null;”) in the LookupTableEntryDaoHibernate the other day and forgot to go back and actually put in the code to return valid results. That had me running around in circles for a while trying to figure out why the testFindByTableIdEntryId kept returning nothing when I knew damn well that there was data in the database, but eventually I managed to figure that out.
So, that takes care of one my many little interrelated projects … now I just have to go through all of the others and do the same thing!
One Response to ' DAO Refactoring: Finally! '
Leave a reply
You must be logged in to post a comment.






on December 4th, 2008 at 4:11 am
That stubbed out “return null” thing is why I always change my IDEs method generation stuff (all of them) to “throw new UnsupportedOperationException()”.
That way if I do ever forget to fill in one of those methods I get punished