« - »

DAO Refactoring: OK, that’s the end of that!

4 December 2008

Once I did one, then it was just a matter of going back and doing the same thing to all of the other projects, and then going through the full build process from the top to get to here:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] example-parent ........................................ SUCCESS [14.063s]
[INFO] core .................................................. SUCCESS [50.671s]
[INFO] approval .............................................. SUCCESS [7.250s]
[INFO] approval-web .......................................... SUCCESS [17.391s]
[INFO] authorization ......................................... SUCCESS [9.531s]
[INFO] authorization-web ..................................... SUCCESS [18.016s]
[INFO] core-web .............................................. SUCCESS [16.937s]
[INFO] example-web ........................................... SUCCESS [23.110s]
[INFO] identity-web .......................................... SUCCESS [1:26.375s]
[INFO] notify ................................................ SUCCESS [47.562s]
[INFO] notify-web ............................................ SUCCESS [28.469s]
[INFO] example ............................................... SUCCESS [4:47.734s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 minutes 25 seconds
[INFO] Finished at: Thu Dec 04 17:45:29 PST 2008
[INFO] Final Memory: 12M/45M
[INFO] ------------------------------------------------------------------------

Now every project boasts this new addition to its pom.xml file, in addition to all of the little things that had to come along to accommodate that:

    <plugins>
       <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
    </plugins>

That should just about finish up the whole refactoring process, although I still think I want to split up the abstract Hibernate DAO into a read-only version and an extension of that for the update version. That should be pretty simple though, and then I can get back to what it was that I was doing before I started down this road of overhauling everything.

Let’s see now, just what was I doing before that …


http://blog.restafarian.org/2008/12/dao-refactoring-ok-thats-the-end-of-that/

Leave a reply

You must be logged in to post a comment.